Skip to content

Commit 399fb6a

Browse files
Merge branch '4.4' into 5.1
* 4.4: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents a3a6530 + 2d31139 commit 399fb6a

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Firewall/AccessListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class AccessListener extends AbstractListener
3333
{
34-
const PUBLIC_ACCESS = 'PUBLIC_ACCESS';
34+
public const PUBLIC_ACCESS = 'PUBLIC_ACCESS';
3535

3636
private $tokenStorage;
3737
private $accessDecisionManager;

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ final class SecurityEvents
2222
*
2323
* @Event("Symfony\Component\Security\Http\Event\InteractiveLoginEvent")
2424
*/
25-
const INTERACTIVE_LOGIN = 'security.interactive_login';
25+
public const INTERACTIVE_LOGIN = 'security.interactive_login';
2626

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

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)