Skip to content

Commit c03a0da

Browse files
committed
bug #48554 [Security] Fix invalid deprecation messages in Security constants (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 ------- 3fd5a40ef1 Point `Security::*` constants to `SecurityRequestAttributes::*` ones
2 parents 1f4976c + e234e3b commit c03a0da

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Security.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,16 @@ class Security implements AuthorizationCheckerInterface
2626
{
2727
/**
2828
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR instead
29-
*
30-
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes::ACCESS_DENIED_ERROR.
3129
*/
3230
public const ACCESS_DENIED_ERROR = '_security.403_error';
3331

3432
/**
3533
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::AUTHENTICATION_ERROR instead
36-
*
37-
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes::AUTHENTICATION_ERROR.
3834
*/
3935
public const AUTHENTICATION_ERROR = '_security.last_error';
4036

4137
/**
4238
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME instead
43-
*
44-
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes::LAST_USERNAME.
4539
*/
4640
public const LAST_USERNAME = '_security.last_username';
4741

0 commit comments

Comments
 (0)