@@ -27,17 +27,17 @@ class GuardListener
2727 private $ configuration ;
2828 private $ expressionLanguage ;
2929 private $ tokenStorage ;
30- private $ authenticationChecker ;
30+ private $ authorizationChecker ;
3131 private $ trustResolver ;
3232 private $ roleHierarchy ;
3333 private $ validator ;
3434
35- public function __construct (array $ configuration , ExpressionLanguage $ expressionLanguage , TokenStorageInterface $ tokenStorage , AuthorizationCheckerInterface $ authenticationChecker , AuthenticationTrustResolverInterface $ trustResolver , RoleHierarchyInterface $ roleHierarchy = null , ValidatorInterface $ validator = null )
35+ public function __construct (array $ configuration , ExpressionLanguage $ expressionLanguage , TokenStorageInterface $ tokenStorage , AuthorizationCheckerInterface $ authorizationChecker , AuthenticationTrustResolverInterface $ trustResolver , RoleHierarchyInterface $ roleHierarchy = null , ValidatorInterface $ validator = null )
3636 {
3737 $ this ->configuration = $ configuration ;
3838 $ this ->expressionLanguage = $ expressionLanguage ;
3939 $ this ->tokenStorage = $ tokenStorage ;
40- $ this ->authenticationChecker = $ authenticationChecker ;
40+ $ this ->authorizationChecker = $ authorizationChecker ;
4141 $ this ->trustResolver = $ trustResolver ;
4242 $ this ->roleHierarchy = $ roleHierarchy ;
4343 $ this ->validator = $ validator ;
@@ -92,7 +92,7 @@ private function getVariables(GuardEvent $event)
9292 return $ role ->getRole ();
9393 }, $ roles ),
9494 // needed for the is_granted expression function
95- 'auth_checker ' => $ this ->authenticationChecker ,
95+ 'auth_checker ' => $ this ->authorizationChecker ,
9696 // needed for the is_* expression function
9797 'trust_resolver ' => $ this ->trustResolver ,
9898 // needed for the is_valid expression function
0 commit comments