Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: autodetect extensions to build for embedded apps #717

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Apr 12, 2024

This patch uses Composer to automatically detect the required extensions of an app embedded in a standalone binary, and build only these!

@dunglas dunglas changed the title feat: autodetect extensions to build for embeded apps feat: autodetect extensions to build for embedded apps Apr 12, 2024
@withinboredom
Copy link
Collaborator

Symfony libs include a lot of polyfills and don't add an extension requirement and many users don't know they'd get better performance by using the extensions instead of the polyfills. Is there some way we can detect these too?

Might be out of scope...

@dunglas
Copy link
Owner Author

dunglas commented Apr 14, 2024

Good idea @withinboredom, this could probably be automated. I'll take a look (maybe in another PR).

@dunglas
Copy link
Owner Author

dunglas commented Apr 23, 2024

Actually, Symony polyfills are already automatically replaced by the proper extensions because of how composer check-platform-reqs works! No need for extra code.

@dunglas dunglas merged commit 404086d into main Apr 23, 2024
41 checks passed
@dunglas dunglas deleted the feat/auto-detec-extensions branch April 23, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants