Security
class Security
Helper class for commonly-needed security tasks.
Constants
ACCESS_DENIED_ERROR | |
AUTHENTICATION_ERROR | |
LAST_USERNAME | |
MAX_USERNAME_LENGTH | |
Methods
Details
__construct(ContainerInterface $container)
Parameters
ContainerInterface | $container | |
Return Value
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
Return Value