@@ -28,17 +28,17 @@ class GuardListener
28
28
private $ configuration ;
29
29
private $ expressionLanguage ;
30
30
private $ tokenStorage ;
31
- private $ authenticationChecker ;
31
+ private $ authorizationChecker ;
32
32
private $ trustResolver ;
33
33
private $ roleHierarchy ;
34
34
private $ validator ;
35
35
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 )
37
37
{
38
38
$ this ->configuration = $ configuration ;
39
39
$ this ->expressionLanguage = $ expressionLanguage ;
40
40
$ this ->tokenStorage = $ tokenStorage ;
41
- $ this ->authenticationChecker = $ authenticationChecker ;
41
+ $ this ->authorizationChecker = $ authorizationChecker ;
42
42
$ this ->trustResolver = $ trustResolver ;
43
43
$ this ->roleHierarchy = $ roleHierarchy ;
44
44
$ this ->validator = $ validator ;
@@ -94,7 +94,7 @@ private function getVariables(GuardEvent $event): array
94
94
return $ role ->getRole ();
95
95
}, $ roles ),
96
96
// needed for the is_granted expression function
97
- 'auth_checker ' => $ this ->authenticationChecker ,
97
+ 'auth_checker ' => $ this ->authorizationChecker ,
98
98
// needed for the is_* expression function
99
99
'trust_resolver ' => $ this ->trustResolver ,
100
100
// needed for the is_valid expression function
0 commit comments