Repository navigation
Make EasyAdmin lighter on requests that aren't for the backend - #7877
Merged
Merged
Conversation
javiereguiluz
force-pushed
the
minimal_runtime_footprint_requests
branch
from
October 25, 2026 17:47
361a115 to
4b3ed11
Compare
javiereguiluz
force-pushed
the
minimal_runtime_footprint_requests
branch
2 times, most recently
from
November 8, 2026 10:36
22cf3f2 to
365a0b4
Compare
javiereguiluz
force-pushed
the
minimal_runtime_footprint_requests
branch
from
November 8, 2026 11:10
365a0b4 to
3c4c5ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EasyAdmin was building a lot of its own services on every request of the app, even for pages that have nothing to do with the admin. Now the admin route subscriber gets one service locator and only asks for the services after it knows the request is an EasyAdmin one.
Also, the two argument resolvers have a lower priority (-60), so Symfony's
ServiceValueResolverhandles service arguments first and never reaches them.BatchActionDtoResolverwas receiving an extraAdminUrlGeneratorargument that its constructor doesn't take. PHP ignored it, but the container still built the generator every time. It's now gone.Finally, I added a tip in the docs about minimizing the number of generated admin routes with multiple backends.