class AuthorizationChecker implements AuthorizationCheckerInterface
AuthorizationChecker is the main authorization point of the Security component.
It gives access to the token representing the current user authentication.
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false) | ||
bool | isGranted(mixed $attributes, mixed $subject = null) Checks if the attributes are granted against the current authentication token and optionally supplied subject. |
TokenStorageInterface | $tokenStorage | |
AuthenticationManagerInterface | $authenticationManager | |
AccessDecisionManagerInterface | $accessDecisionManager | |
bool | $alwaysAuthenticate |
Checks if the attributes are granted against the current authentication token and optionally supplied subject.
mixed | $attributes | |
mixed | $subject |
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.html