PHP 클래스 Symfony\Component\Security\Core\SecurityContext

It gives access to the token representing the current user authentication.
사용 중단: since version 2.6, to be removed in 3.0.
저자: Fabien Potencier ([email protected])
저자: Johannes M. Schmitt ([email protected])
상속: implements Symfony\Component\Security\Core\SecurityContextInterface
파일 보기 프로젝트 열기: ctrlaltdylan/MirrorMirror 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface | Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface | Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface $authorizationChecker, boolean $alwaysAuthenticate = false ) For backwards compatibility, the signature of sf <2.6 still works.
getToken ( )
isGranted ( $attributes, $object = null )
setToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token = null )

메소드 상세

__construct() 공개 메소드

For backwards compatibility, the signature of sf <2.6 still works.
public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface | Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface | Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface $authorizationChecker, boolean $alwaysAuthenticate = false )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface | Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface | Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface
$alwaysAuthenticate boolean only applicable with old signature

getToken() 공개 메소드

사용 중단: since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead. {@inheritdoc}
public getToken ( )

isGranted() 공개 메소드

사용 중단: since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead. {@inheritdoc}
public isGranted ( $attributes, $object = null )

setToken() 공개 메소드

사용 중단: since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead. {@inheritdoc}
public setToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token = null )
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface