Skip to content

[SecurityBundle] Allow for custom request matchers in access control #22578

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[SecurityBundle] Allow for custom request matchers in access control #22578

wants to merge 1 commit into from

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Apr 28, 2017

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes/no
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

Re-opening #20272 in the same spirit of #22572, and i have no better solution to enable route matching :)

Not sure about the config yet, it differs from the logout listener where both configs (path + request_matcher) must match.

So for access control to get the same behavior (where all configs must match) it needs a chain request matcher or get creative with AccessMap::add.

Otherwise i think the logout listener should follow this behavior.

@ro0NL
Copy link
Contributor Author

ro0NL commented Aug 31, 2017

Closing in favor of doing it in PHP at the class level.

This makes config unnecessarily more complex for little gain; a request matcher per route wont help me really.

@ro0NL ro0NL closed this Aug 31, 2017
@ro0NL ro0NL deleted the security-bundle/custom-matchers branch August 31, 2017 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants