File tree Expand file tree Collapse file tree 7 files changed +23
-23
lines changed Expand file tree Collapse file tree 7 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ interface AuthenticationProviderInterface extends AuthenticationManagerInterface
29
29
*
30
30
* @var string
31
31
*/
32
- const USERNAME_NONE_PROVIDED = 'NONE_PROVIDED ' ;
32
+ public const USERNAME_NONE_PROVIDED = 'NONE_PROVIDED ' ;
33
33
34
34
/**
35
35
* Checks whether this provider supports the given token.
Original file line number Diff line number Diff line change @@ -22,22 +22,22 @@ final class AuthenticationEvents
22
22
*
23
23
* @Event("Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent")
24
24
*/
25
- const AUTHENTICATION_SUCCESS = 'security.authentication.success ' ;
25
+ public const AUTHENTICATION_SUCCESS = 'security.authentication.success ' ;
26
26
27
27
/**
28
28
* The AUTHENTICATION_FAILURE event occurs after a user cannot be
29
29
* authenticated by any of the providers.
30
30
*
31
31
* @Event("Symfony\Component\Security\Core\Event\AuthenticationFailureEvent")
32
32
*/
33
- const AUTHENTICATION_FAILURE = 'security.authentication.failure ' ;
33
+ public const AUTHENTICATION_FAILURE = 'security.authentication.failure ' ;
34
34
35
35
/**
36
36
* Event aliases.
37
37
*
38
38
* These aliases can be consumed by RegisterListenersPass.
39
39
*/
40
- const ALIASES = [
40
+ public const ALIASES = [
41
41
AuthenticationSuccessEvent::class => self ::AUTHENTICATION_SUCCESS ,
42
42
AuthenticationFailureEvent::class => self ::AUTHENTICATION_FAILURE ,
43
43
];
Original file line number Diff line number Diff line change 23
23
*/
24
24
class AccessDecisionManager implements AccessDecisionManagerInterface
25
25
{
26
- const STRATEGY_AFFIRMATIVE = 'affirmative ' ;
27
- const STRATEGY_CONSENSUS = 'consensus ' ;
28
- const STRATEGY_UNANIMOUS = 'unanimous ' ;
29
- const STRATEGY_PRIORITY = 'priority ' ;
26
+ public const STRATEGY_AFFIRMATIVE = 'affirmative ' ;
27
+ public const STRATEGY_CONSENSUS = 'consensus ' ;
28
+ public const STRATEGY_UNANIMOUS = 'unanimous ' ;
29
+ public const STRATEGY_PRIORITY = 'priority ' ;
30
30
31
31
private $ voters ;
32
32
private $ strategy ;
Original file line number Diff line number Diff line change 26
26
*/
27
27
class AuthenticatedVoter implements VoterInterface
28
28
{
29
- const IS_AUTHENTICATED_FULLY = 'IS_AUTHENTICATED_FULLY ' ;
30
- const IS_AUTHENTICATED_REMEMBERED = 'IS_AUTHENTICATED_REMEMBERED ' ;
31
- const IS_AUTHENTICATED_ANONYMOUSLY = 'IS_AUTHENTICATED_ANONYMOUSLY ' ;
32
- const IS_ANONYMOUS = 'IS_ANONYMOUS ' ;
33
- const IS_IMPERSONATOR = 'IS_IMPERSONATOR ' ;
34
- const IS_REMEMBERED = 'IS_REMEMBERED ' ;
35
- const PUBLIC_ACCESS = 'PUBLIC_ACCESS ' ;
29
+ public const IS_AUTHENTICATED_FULLY = 'IS_AUTHENTICATED_FULLY ' ;
30
+ public const IS_AUTHENTICATED_REMEMBERED = 'IS_AUTHENTICATED_REMEMBERED ' ;
31
+ public const IS_AUTHENTICATED_ANONYMOUSLY = 'IS_AUTHENTICATED_ANONYMOUSLY ' ;
32
+ public const IS_ANONYMOUS = 'IS_ANONYMOUS ' ;
33
+ public const IS_IMPERSONATOR = 'IS_IMPERSONATOR ' ;
34
+ public const IS_REMEMBERED = 'IS_REMEMBERED ' ;
35
+ public const PUBLIC_ACCESS = 'PUBLIC_ACCESS ' ;
36
36
37
37
private $ authenticationTrustResolver ;
38
38
Original file line number Diff line number Diff line change 20
20
*/
21
21
interface VoterInterface
22
22
{
23
- const ACCESS_GRANTED = 1 ;
24
- const ACCESS_ABSTAIN = 0 ;
25
- const ACCESS_DENIED = -1 ;
23
+ public const ACCESS_GRANTED = 1 ;
24
+ public const ACCESS_ABSTAIN = 0 ;
25
+ public const ACCESS_DENIED = -1 ;
26
26
27
27
/**
28
28
* Returns the vote for the given parameters.
Original file line number Diff line number Diff line change 18
18
*/
19
19
abstract class BasePasswordEncoder implements PasswordEncoderInterface
20
20
{
21
- const MAX_PASSWORD_LENGTH = 4096 ;
21
+ public const MAX_PASSWORD_LENGTH = 4096 ;
22
22
23
23
/**
24
24
* {@inheritdoc}
Original file line number Diff line number Diff line change 23
23
*/
24
24
class Security implements AuthorizationCheckerInterface
25
25
{
26
- const ACCESS_DENIED_ERROR = '_security.403_error ' ;
27
- const AUTHENTICATION_ERROR = '_security.last_error ' ;
28
- const LAST_USERNAME = '_security.last_username ' ;
29
- const MAX_USERNAME_LENGTH = 4096 ;
26
+ public const ACCESS_DENIED_ERROR = '_security.403_error ' ;
27
+ public const AUTHENTICATION_ERROR = '_security.last_error ' ;
28
+ public const LAST_USERNAME = '_security.last_username ' ;
29
+ public const MAX_USERNAME_LENGTH = 4096 ;
30
30
31
31
private $ container ;
32
32
You can’t perform that action at this time.
0 commit comments