Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
OskarStark merged 1 commit intosymfony:6.2frommdoutreluingne:fix_17377
Oct 24, 2022

Conversation

@mdoutreluingne
Copy link
Contributor

@mdoutreluingnemdoutreluingne commentedOct 23, 2022
edited by OskarStark
Loading

fixes#17377

Could you help me with the XML and PHP formats.

  • Add YAML example format
  • Add XML example format
  • Add PHP example format

@carsonbotcarsonbot added this to the6.2 milestoneOct 23, 2022
@carsonbotcarsonbot changed the title[SecurityBundle][WIP] Allow specifying attributes forRequestMatcher[WIP] Allow specifying attributes forRequestMatcherOct 23, 2022
Copy link
Member

@wouterjwouterj left a 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');

@mdoutreluingnemdoutreluingne changed the title[WIP] Allow specifying attributes forRequestMatcher[WCM] Allow specifying attributes forRequestMatcherOct 23, 2022
@OskarStark
Copy link
Contributor

What does WCM in the title means?

@mdoutreluingne
Copy link
ContributorAuthor

mdoutreluingne commentedOct 23, 2022
edited
Loading

WCM means 'Waiting Code Merge', Wouter has created aPRto add the XML format

OskarStark reacted with thumbs up emoji

@wouterjwouterj changed the title[WCM] Allow specifying attributes forRequestMatcherAllow specifying attributes forRequestMatcherOct 23, 2022
@wouterj
Copy link
Member

Ready to go 🚀

@OskarStark
Copy link
Contributor

Thank you Maxime.

@OskarStarkOskarStark merged commitb50517d intosymfony:6.2Oct 24, 2022
@mdoutreluingnemdoutreluingne deleted the fix_17377 branchOctober 24, 2022 16:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

[SecurityBundle] Allow specifying attributes forRequestMatcher

4 participants

@mdoutreluingne@OskarStark@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp