-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Move the new Security helper to the root of SecurityBundle #47760
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
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.
👍 Should make @javiereguiluz happy as he was challenging that redundancy issue when the class was introduced :)
Haha, I vaguely remembered this discussion, but couldn't find it anywhere. I believe I was against this change back then, but seeing the class name in the docs changed my mind :) |
Thank you @wouterj. |
…lper namespace (smnandre) This PR was merged into the 6.2 branch. Discussion ---------- [Security] Fix the SecurityBundle\Security.php helper namespace This PR fix the new `Security` helper namespace change introduced by this PR: symfony/symfony#47760 (itself following symfony#17284) Targeting 6.2 because the Security Helper class did not exists there before Commits ------- f1467e7 Fix the Security\Helper namespace
…nstants (IonBazan) This PR was merged into the 6.2 branch. Discussion ---------- [Security] Fix invalid deprecation messages in Security constants | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - This PR changes invalid deprecation message, suggesting to use `\Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR` instead of `\Symfony\Component\Security\Core\Security::ACCESS_DENIED_ERROR`, while `\Symfony\Component\Security\Http\SecurityRequestAttributes::ACCESS_DENIED_ERROR` should be used. For reference: #47760 Commits ------- 3fd5a40 Point `Security::*` constants to `SecurityRequestAttributes::*` ones
This class has been moved in symfony/symfony#47760
This class has been moved in symfony/symfony#47760
While merging symfony/symfony-docs#17284 , I found this rather repeating FQCN:
...\SecurityBundle\Security\Security
. Security is important, but let's move the class (also introduced in 6.2) one level up to make the FQCN not unnecessarily long.