Security
class Security
Helper class for commonly-needed security tasks.
Constants
ACCESS_DENIED_ERROR |
|
AUTHENTICATION_ERROR |
|
LAST_USERNAME |
|
MAX_USERNAME_LENGTH |
|
Methods
__construct(ContainerInterface $container)
No description
UserInterface|null
getUser()
No description
bool
isGranted(mixed $attributes, mixed $subject = null)
Checks if the attributes are granted against the current authentication token and optionally supplied subject.
TokenInterface|null
getToken()
No description