Skip to content

Commit 40023b8

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 95b6fb2 + 399fb6a commit 40023b8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Firewall/SwitchUserListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040
class SwitchUserListener extends AbstractListener
4141
{
42-
const EXIT_VALUE = '_exit';
42+
public const EXIT_VALUE = '_exit';
4343

4444
private $tokenStorage;
4545
private $provider;

RememberMe/AbstractRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
abstract class AbstractRememberMeServices implements RememberMeServicesInterface, LogoutHandlerInterface
3535
{
36-
const COOKIE_DELIMITER = ':';
36+
public const COOKIE_DELIMITER = ':';
3737

3838
protected $logger;
3939
protected $options = [

RememberMe/RememberMeServicesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface RememberMeServicesInterface
3333
* This attribute name can be used by the implementation if it needs to set
3434
* a cookie on the Request when there is no actual Response, yet.
3535
*/
36-
const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
36+
public const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
3737

3838
/**
3939
* This method will be called whenever the TokenStorage does not contain

SecurityEvents.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ final class SecurityEvents
2525
*
2626
* @Event("Symfony\Component\Security\Http\Event\InteractiveLoginEvent")
2727
*/
28-
const INTERACTIVE_LOGIN = 'security.interactive_login';
28+
public const INTERACTIVE_LOGIN = 'security.interactive_login';
2929

3030
/**
3131
* The SWITCH_USER event occurs before switch to another user and
3232
* before exit from an already switched user.
3333
*
3434
* @Event("Symfony\Component\Security\Http\Event\SwitchUserEvent")
3535
*/
36-
const SWITCH_USER = 'security.switch_user';
36+
public const SWITCH_USER = 'security.switch_user';
3737

3838
/**
3939
* Event aliases.
4040
*
4141
* These aliases can be consumed by RegisterListenersPass.
4242
*/
43-
const ALIASES = [
43+
public const ALIASES = [
4444
InteractiveLoginEvent::class => self::INTERACTIVE_LOGIN,
4545
SwitchUserEvent::class => self::SWITCH_USER,
4646
];

Session/SessionAuthenticationStrategy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
*/
2727
class SessionAuthenticationStrategy implements SessionAuthenticationStrategyInterface
2828
{
29-
const NONE = 'none';
30-
const MIGRATE = 'migrate';
31-
const INVALIDATE = 'invalidate';
29+
public const NONE = 'none';
30+
public const MIGRATE = 'migrate';
31+
public const INVALIDATE = 'invalidate';
3232

3333
private $strategy;
3434

0 commit comments

Comments
 (0)