Core\Authorization\AuthorizationChecker (Component\Security)
Symfony\Component\Security\Core\Authorization\AuthorizationChecker
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.
Methods
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false) Constructor. | ||
bool | isGranted(mixed $attributes, mixed $object = null) Checks if the attributes are granted against the current authentication token and optionally supplied object. |
Details
public __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false)
Constructor.
final public bool isGranted(mixed $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.html