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)

No description

bool
isGranted(mixed $attributes, mixed $subject = null)

Checks if the attributes are granted against the current authentication token and optionally supplied subject.

Details

at line line 33
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false)

Parameters

TokenStorageInterface $tokenStorage
AuthenticationManagerInterface $authenticationManager
AccessDecisionManagerInterface $accessDecisionManager
bool $alwaysAuthenticate

at line line 46
final bool isGranted(mixed $attributes, mixed $subject = null)

Checks if the attributes are granted against the current authentication token and optionally supplied subject.

Parameters

mixed $attributes
mixed $subject

Return Value

bool