PHP 클래스 Jarves\Client\UserOperator

파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, UserProvider $userProvider, Psr\Log\LoggerInterface $logger, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\HttpFoundation\RequestStack $requestStack )
getToken ( ) : null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface
getUser ( ) : User | null Returns the current logged in User if available. Null if not or another token than Jarves' is active.
isLoggedIn ( ) : boolean Returns true when a non AnonymousToken is set (which primarily means a real User is logged in)
login ( string $username, string $password, null | string $requiredGroupRole = null ) : boolean
logout ( )
manualLogin ( User $user )

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, UserProvider $userProvider, Psr\Log\LoggerInterface $logger, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$userProvider UserProvider
$logger Psr\Log\LoggerInterface
$encoderFactory Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack

getToken() 공개 메소드

public getToken ( ) : null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface
리턴 null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface

getUser() 공개 메소드

Returns the current logged in User if available. Null if not or another token than Jarves' is active.
public getUser ( ) : User | null
리턴 Jarves\Model\User | null

isLoggedIn() 공개 메소드

Returns true when a non AnonymousToken is set (which primarily means a real User is logged in)
public isLoggedIn ( ) : boolean
리턴 boolean

login() 공개 메소드

public login ( string $username, string $password, null | string $requiredGroupRole = null ) : boolean
$username string
$password string
$requiredGroupRole null | string
리턴 boolean

logout() 공개 메소드

public logout ( )

manualLogin() 공개 메소드

public manualLogin ( User $user )
$user Jarves\Model\User