SecurityContextInterface deprecated
interface SecurityContextInterface implements TokenStorageInterface, AuthorizationCheckerInterface
deprecated
The SecurityContextInterface.
Constants
ACCESS_DENIED_ERROR |
|
AUTHENTICATION_ERROR |
|
LAST_USERNAME |
|
Methods
bool
isGranted(mixed $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object.
Details
in TokenStorageInterface at line line 28
TokenInterface|null
getToken()
Returns the current security token.
in TokenStorageInterface at line line 35
setToken(TokenInterface $token = null)
Sets the authentication token.
in AuthorizationCheckerInterface at line line 29
bool
isGranted(mixed $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object.