Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Security][SecurityBundle] Move theSecurity
helper to SecurityBundle#46094
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
47827d2
to741cf2a
CompareThanks@chalasr! 😍 |
116495a
to8060907
CompareRebased on 6.2 |
Security
helper to SecurityBundleSecurity
helper to SecurityBundleUh oh!
There was an error while loading.Please reload this page.
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 for working on this!
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/SecurityContextAttributes.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/Authenticator/JsonLoginAuthenticator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
0ed5d7a
to0c0f95f
CompareThere 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.
Looking good to me!
Thank you@chalasr. |
…elper (HypeMC)This PR was merged into the 6.2 branch.Discussion----------[SecurityBundle] Add service alias for legacy Security helper| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | yes| New feature? | no| Deprecations? | yes| Tickets | -| License | MIT| Doc PR | -The service alias for `Symfony\Component\Security\Core\Security` was removed in#46094 which causes existing code to break when upgrading to 6.2, eg:```phpuse Symfony\Component\Security\Core\Security;class HomeController extends AbstractController{ public function __construct(private Security $security) { }}```results in:Commits-------0b81a75 [SecurityBundle] Add service alias for legacy Security helper
Uh oh!
There was an error while loading.Please reload this page.
The
Security
helper is a high-level service providing an easy access to commonly-needed features coming from various low-level abstractions. Basically, it's a facade.Based on this, it makes sense to me to make it available only via the full-stack framework, as proposed by Wouter in#46066 (comment).
This unlocks#46066,#41274 and#41406.
/cc@wouterj@johnkrovitch@Kocal