Skip to content

Commit afcd87c

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: fix authorization checker variable name [Routing] Remove duplicate schemes and methods for invokable controllers [Bridge/PhpUnit] fix the fix
2 parents 1ef13e6 + e578cbb commit afcd87c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EventListener/GuardListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class GuardListener
2828
private $configuration;
2929
private $expressionLanguage;
3030
private $tokenStorage;
31-
private $authenticationChecker;
31+
private $authorizationChecker;
3232
private $trustResolver;
3333
private $roleHierarchy;
3434
private $validator;
3535

36-
public function __construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authenticationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
36+
public function __construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authorizationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
3737
{
3838
$this->configuration = $configuration;
3939
$this->expressionLanguage = $expressionLanguage;
4040
$this->tokenStorage = $tokenStorage;
41-
$this->authenticationChecker = $authenticationChecker;
41+
$this->authorizationChecker = $authorizationChecker;
4242
$this->trustResolver = $trustResolver;
4343
$this->roleHierarchy = $roleHierarchy;
4444
$this->validator = $validator;
@@ -94,7 +94,7 @@ private function getVariables(GuardEvent $event): array
9494
return $role->getRole();
9595
}, $roles),
9696
// needed for the is_granted expression function
97-
'auth_checker' => $this->authenticationChecker,
97+
'auth_checker' => $this->authorizationChecker,
9898
// needed for the is_* expression function
9999
'trust_resolver' => $this->trustResolver,
100100
// needed for the is_valid expression function

0 commit comments

Comments
 (0)