From 9f4032d20f5293a644bf5440c9695f2e24c564dc Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 22 Nov 2018 08:01:54 +0100 Subject: [PATCH] fix authorization checker variable name --- .../Component/Workflow/EventListener/GuardListener.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Workflow/EventListener/GuardListener.php b/src/Symfony/Component/Workflow/EventListener/GuardListener.php index 4d3cfac57e..b2e6b8c7b3 100644 --- a/src/Symfony/Component/Workflow/EventListener/GuardListener.php +++ b/src/Symfony/Component/Workflow/EventListener/GuardListener.php @@ -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