fix authorization checker variable name

This commit is contained in:
Christian Flothmann 2018-11-22 08:01:54 +01:00
parent 236565c87e
commit 9f4032d20f

View File

@ -27,17 +27,17 @@ class GuardListener
private $configuration;
private $expressionLanguage;
private $tokenStorage;
private $authenticationChecker;
private $authorizationChecker;
private $trustResolver;
private $roleHierarchy;
private $validator;
public function __construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authenticationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
public function __construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authorizationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
{
$this->configuration = $configuration;
$this->expressionLanguage = $expressionLanguage;
$this->tokenStorage = $tokenStorage;
$this->authenticationChecker = $authenticationChecker;
$this->authorizationChecker = $authorizationChecker;
$this->trustResolver = $trustResolver;
$this->roleHierarchy = $roleHierarchy;
$this->validator = $validator;
@ -92,7 +92,7 @@ class GuardListener
return $role->getRole();
}, $roles),
// needed for the is_granted expression function
'auth_checker' => $this->authenticationChecker,
'auth_checker' => $this->authorizationChecker,
// needed for the is_* expression function
'trust_resolver' => $this->trustResolver,
// needed for the is_valid expression function