AuthorizationChecker
in package
implements
AuthorizationCheckerInterface
AuthorizationChecker is the main authorization point of the Security component.
It gives access to the token representing the current user authentication.
Tags
Interfaces, Classes, Traits and Enums
- AuthorizationCheckerInterface
- The AuthorizationCheckerInterface.
Table of Contents
- $accessDecisionManager : mixed
- $alwaysAuthenticate : mixed
- $authenticationManager : mixed
- $tokenStorage : mixed
- __construct() : mixed
- isGranted() : bool
- Checks if the attributes are granted against the current authentication token and optionally supplied subject.
Properties
$accessDecisionManager
private
mixed
$accessDecisionManager
$alwaysAuthenticate
private
mixed
$alwaysAuthenticate
$authenticationManager
private
mixed
$authenticationManager
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager[, bool $alwaysAuthenticate = false ]) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
- $authenticationManager : AuthenticationManagerInterface
- $accessDecisionManager : AccessDecisionManagerInterface
- $alwaysAuthenticate : bool = false
Return values
mixed —isGranted()
Checks if the attributes are granted against the current authentication token and optionally supplied subject.
public
final isGranted(mixed $attributes[, mixed $subject = null ]) : bool
Parameters
- $attributes : mixed
- $subject : mixed = null