Skip to content

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

Open
guillaume-sainthillier wants to merge 1 commit into
EasyCorp:5.xfrom
guillaume-sainthillier:remove-unused-entity-fqcn-cache-entry
Open

Remove the ENTITY_FQCN_TO_CRUD_FQCN cache entry, which was written but never read#7716
guillaume-sainthillier wants to merge 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
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.

1 participant