SecurityContext deprecated
class SecurityContext implements SecurityContextInterface
deprecated
SecurityContext is the main entry point of the Security component.
It gives access to the token representing the current user authentication.
Methods
__construct(TokenStorageInterface|AuthenticationManagerInterface $tokenStorage, AuthorizationCheckerInterface|AccessDecisionManagerInterface $authorizationChecker, bool $alwaysAuthenticate = false)
For backwards compatibility, the signature of sf <2.6 still works.
TokenInterface|null
bool
Details
at line line 53
__construct(TokenStorageInterface|AuthenticationManagerInterface $tokenStorage, AuthorizationCheckerInterface|AccessDecisionManagerInterface $authorizationChecker, bool $alwaysAuthenticate = false)
For backwards compatibility, the signature of sf <2.6 still works.
at line line 80
TokenInterface|null
getToken()
deprecated
deprecated
at line line 90
setToken(TokenInterface $token = null)
deprecated
deprecated
at line line 100
bool
isGranted(mixed $attributes, mixed $object = null)
deprecated
deprecated