Skip to content

Apply AdminRoute options on CRUD controller action routes#7580

Open
lacatoire wants to merge 2 commits intoEasyCorp:5.xfrom
lacatoire:fix/7496-admin-route-options-v2
Open

Apply AdminRoute options on CRUD controller action routes#7580
lacatoire wants to merge 2 commits intoEasyCorp:5.xfrom
lacatoire:fix/7496-admin-route-options-v2

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

When a #[AdminRoute] attribute is applied to a CRUD controller action method, only the methods option was honoured. Other options (requirements, host, schemes, condition, locale, format, stateless, utf8, defaults, options) were silently ignored, which is surprising and diverges from how they are applied on non-CRUD #[AdminRoute] controllers and on the #[AdminDashboard] attribute.

This PR extracts the shared option-application logic into a small helper and wires it up on the CRUD action route path too.

Fixes #7496

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.

AdminRoute requirements option

1 participant