minor #29278 [Workflow] fix authorization checker variable name (xabbuh)
This PR was merged into the 3.4 branch.
Discussion
----------
[Workflow] fix authorization checker variable name
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
9f4032d20f
fix authorization checker variable name
This commit is contained in:
commit
d713671b80
@ -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
|
||||
|
Reference in New Issue
Block a user