-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Routing][SecurityBundle] Add LogoutRouteLoader
#50946
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
Conversation
LogoutRouteLoader
LogoutRouteLoader
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.
Looks very cool to me. Thanks for creating this PR :)
I feel like the ContainerParameterResource
is probably the only way to do this indeed. Maybe someone else has a better suggestion?
e79f533
to
10097af
Compare
Gave it a shot. Still open to suggestions! |
10097af
to
a50a12d
Compare
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
a50a12d
to
65f4a67
Compare
src/Symfony/Bundle/SecurityBundle/Routing/LogoutRouteLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Routing/LogoutRouteLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Routing/LogoutRouteLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
4513e2e
to
17d1964
Compare
17d1964
to
ccac0b7
Compare
src/Symfony/Bundle/SecurityBundle/Routing/LogoutRouteLoader.php
Outdated
Show resolved
Hide resolved
I like the nice little DX improvement here! Thanks for working on this Mathieu! Let's get this in 6.4/7.0 |
This PR was merged into the 6.4 branch. Discussion ---------- [SecurityBundle] Fix LogoutRouteLoader PHPDoc | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Fix little typo in phpdoc, introduced in #50946 cc `@MatTheCat` for review :) Commits ------- dbbc5bf [SecurityBundle] Fix LogoutRouteLoader phpdoc
…MatTheCat) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Routing][Security] Document the `LogoutRouteLoader` Related to * symfony/symfony#50946 Commits ------- 8906132 [Routing][Security] Document the `LogoutRouteLoader`
#50920 is about avoiding for users to create logout routes. Given we don’t want to allow bundles registering routes, I added a
LogoutRouteLoader
service bearing therouting.route_loader
tag to be imported by the user. Such import could be added to the SecurityBundle recipe:To invalidate routes when logout paths change, I stored them in a parameter so that the
ContainerParametersResourceChecker
can check the collection. Not sure if it’s okay or if a better way exists.