File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 24
24
use Symfony \Component \Security \Http \Authenticator \AuthenticatorInterface ;
25
25
use Symfony \Component \Security \Http \Event \LogoutEvent ;
26
26
use Symfony \Component \Security \Http \ParameterBagUtils ;
27
+ use Symfony \Component \Security \Http \SecurityRequestAttributes ;
27
28
use Symfony \Contracts \Service \ServiceProviderInterface ;
28
29
29
30
/**
37
38
*/
38
39
class Security extends LegacySecurity
39
40
{
41
+ public const ACCESS_DENIED_ERROR = SecurityRequestAttributes::ACCESS_DENIED_ERROR ;
42
+ public const AUTHENTICATION_ERROR = SecurityRequestAttributes::AUTHENTICATION_ERROR ;
43
+ public const LAST_USERNAME = SecurityRequestAttributes::LAST_USERNAME ;
44
+
45
+
40
46
public function __construct (private readonly ContainerInterface $ container , private readonly array $ authenticators = [])
41
47
{
42
48
parent ::__construct ($ container , false );
Original file line number Diff line number Diff line change @@ -26,22 +26,16 @@ class Security implements AuthorizationCheckerInterface
26
26
{
27
27
/**
28
28
* @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.
31
29
*/
32
30
public const ACCESS_DENIED_ERROR = '_security.403_error ' ;
33
31
34
32
/**
35
33
* @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.
38
34
*/
39
35
public const AUTHENTICATION_ERROR = '_security.last_error ' ;
40
36
41
37
/**
42
38
* @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.
45
39
*/
46
40
public const LAST_USERNAME = '_security.last_username ' ;
47
41
You can’t perform that action at this time.
0 commit comments