Skip to content

Remove the ENTITY_FQCN_TO_CRUD_FQCN cache entry, which was written but never read#7716

Merged
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
guillaume-sainthillier:remove-unused-entity-fqcn-cache-entry
Jul 22, 2026
Merged

Remove the ENTITY_FQCN_TO_CRUD_FQCN cache entry, which was written but never read#7716
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
guillaume-sainthillier:remove-unused-entity-fqcn-cache-entry

Conversation

@guillaume-sainthillier

Copy link
Copy Markdown
Contributor

AdminRouteGenerator built and cached a one-to-many entity-to-controllers
map on every route generation, but no code reads that cache entry:
AdminControllerRegistry derives its own (documented, last-controller-wins)
reverse map with array_flip() from the CRUD_FQCN_TO_ENTITY_FQCN entry.

Note: this removes the public CacheKey::ENTITY_FQCN_TO_CRUD_FQCN constant.

…t never read

AdminRouteGenerator built and cached a one-to-many entity-to-controllers
map on every route generation, but no code reads that cache entry:
AdminControllerRegistry derives its own (documented, last-controller-wins)
reverse map with array_flip() from the CRUD_FQCN_TO_ENTITY_FQCN entry.

Note: this removes the public CacheKey::ENTITY_FQCN_TO_CRUD_FQCN constant.
@guillaume-sainthillier
guillaume-sainthillier force-pushed the remove-unused-entity-fqcn-cache-entry branch from 79db6fe to b784737 Compare July 13, 2026 07:34
@javiereguiluz javiereguiluz added this to the 5.x milestone Jul 22, 2026
@javiereguiluz
javiereguiluz merged commit 8a79c22 into EasyCorp:5.x Jul 22, 2026
16 checks passed
@javiereguiluz

Copy link
Copy Markdown
Collaborator

Merged! Thanks Guillaume.

We usually don't remove public constants like this (we follow Symofny's process of deprecating it first). But, given that this is mostly internal, and nobody should need this in EasyAdmin 5+ versions, I just added a short entry in the UPGRADE file about this removal.

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.

2 participants