Skip to content

Make EasyAdmin lighter on requests that aren't for the backend - #7877

Merged
javiereguiluz merged 1 commit into
5.xfrom
minimal_runtime_footprint_requests
Nov 8, 2026
Merged

javiereguiluz merged 1 commit into
5.xfrom
minimal_runtime_footprint_requests

Conversation

@javiereguiluz

Copy link
Copy Markdown
Collaborator

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 ServiceValueResolver handles service arguments first and never reaches them.

BatchActionDtoResolver was receiving an extra AdminUrlGenerator argument 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.

@javiereguiluz javiereguiluz added this to the 5.x milestone Oct 24, 2026
@javiereguiluz
javiereguiluz force-pushed the minimal_runtime_footprint_requests branch from 361a115 to 4b3ed11 Compare October 25, 2026 17:47
@javiereguiluz
javiereguiluz force-pushed the minimal_runtime_footprint_requests branch 2 times, most recently from 22cf3f2 to 365a0b4 Compare November 8, 2026 10:36
@javiereguiluz
javiereguiluz force-pushed the minimal_runtime_footprint_requests branch from 365a0b4 to 3c4c5ab Compare November 8, 2026 11:10
@javiereguiluz
javiereguiluz merged commit cb5c54d into 5.x Nov 8, 2026
27 checks passed
@javiereguiluz
javiereguiluz deleted the minimal_runtime_footprint_requests branch November 8, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant