AuthorizationChecker
in package
implements
AuthorizationCheckerInterface
A slightly modified authorization checker optimized for performance and which doesn't trigger exceptions when security is not enabled.
Tags
Table of Contents
Interfaces
- AuthorizationCheckerInterface
- The AuthorizationCheckerInterface.
Properties
Methods
- __construct() : mixed
- isGranted() : bool
- Checks if the attribute is granted against the current authentication token and optionally supplied subject.
Properties
$authorizationChecker
private
AuthorizationCheckerInterface
$authorizationChecker
Methods
__construct()
public
__construct(AuthorizationCheckerInterface $authorizationChecker) : mixed
Parameters
- $authorizationChecker : AuthorizationCheckerInterface
isGranted()
Checks if the attribute is granted against the current authentication token and optionally supplied subject.
public
isGranted(mixed $permission[, mixed $subject = null ]) : bool
Parameters
- $permission : mixed
- $subject : mixed = null