Skip to content

Commit b4d001d

Browse files
IonBazanchalasr
authored andcommitted
Point Security::* constants to SecurityRequestAttributes::* ones
1 parent 2549460 commit b4d001d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Security.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
2525
use Symfony\Component\Security\Http\Event\LogoutEvent;
2626
use Symfony\Component\Security\Http\ParameterBagUtils;
27+
use Symfony\Component\Security\Http\SecurityRequestAttributes;
2728
use Symfony\Contracts\Service\ServiceProviderInterface;
2829

2930
/**
@@ -37,6 +38,10 @@
3738
*/
3839
class Security extends LegacySecurity
3940
{
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+
4045
public function __construct(private readonly ContainerInterface $container, private readonly array $authenticators = [])
4146
{
4247
parent::__construct($container, false);

0 commit comments

Comments
 (0)