Skip to content

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

Merged
merged 1 commit into from
Oct 2, 2022

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Oct 1, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

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.

@wouterj wouterj requested a review from chalasr as a code owner October 1, 2022 16:36
@carsonbot carsonbot added this to the 6.2 milestone Oct 1, 2022
Copy link
Member

@chalasr chalasr left a 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 :)

@wouterj
Copy link
Member Author

wouterj commented Oct 1, 2022

👍 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 :)

@chalasr
Copy link
Member

chalasr commented Oct 2, 2022

Thank you @wouterj.

@chalasr chalasr merged commit 53db097 into symfony:6.2 Oct 2, 2022
@wouterj wouterj deleted the security-helper branch October 2, 2022 11:43
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Oct 22, 2022
…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
chalasr added a commit that referenced this pull request Dec 9, 2022
…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
fabpot added a commit to fabpot/rector-symfony that referenced this pull request Dec 21, 2022
samsonasik pushed a commit to rectorphp/rector-symfony that referenced this pull request Dec 21, 2022
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.

4 participants