PHP Class Jarves\Client\UserOperator

Afficher le fichier Open project: jarves/jarves Class Usage Examples

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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 méthode

public getToken ( ) : null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface
Résultat null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface

getUser() public méthode

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

isLoggedIn() public méthode

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

login() public méthode

public login ( string $username, string $password, null | string $requiredGroupRole = null ) : boolean
$username string
$password string
$requiredGroupRole null | string
Résultat boolean

logout() public méthode

public logout ( )

manualLogin() public méthode

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