@@ -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