Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Allow specifying attributes forRequestMatcher#17388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
RequestMatcherRequestMatcher
wouterj left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you!
The other formats would look like this:
<rulerole="ROLE_ADMIN"> <attributekey="_route">admin</attribute></rule><ruleroute="admin"role="ROLE_ADMIN"/>
(btw, you were actually right - XML was not yet supported for this setting, I've contributed a fix:symfony/symfony#47959 )
$security->accessControl() ->roles(['ROLE_ADMIN']) ->attributes(['_route' =>'admin']);$security->accessControl() ->roles(['ROLE_ADMIN']) ->route('admin');
Uh oh!
There was an error while loading.Please reload this page.
RequestMatcherRequestMatcherOskarStark commentedOct 23, 2022
What does WCM in the title means? |
mdoutreluingne commentedOct 23, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
RequestMatcherRequestMatcherwouterj commentedOct 23, 2022
Ready to go 🚀 |
OskarStark commentedOct 24, 2022
Thank you Maxime. |
Uh oh!
There was an error while loading.Please reload this page.
fixes#17377
Could you help me with the XML and PHP formats.