mediatekformation

TokenStorage
in package
implements TokenStorageInterface, ResetInterface

TokenStorage contains a TokenInterface.

It gives access to the token representing the current user authentication.

Tags
author

Fabien Potencier fabien@symfony.com

author

Johannes M. Schmitt schmittjoh@gmail.com

Interfaces, Classes, Traits and Enums

TokenStorageInterface
The TokenStorageInterface.
ResetInterface
Provides a way to reset an object to its initial state.

Table of Contents

$initializer  : mixed
$token  : mixed
getToken()  : TokenInterface|null
Returns the current security token.
reset()  : mixed
setInitializer()  : void
setToken()  : mixed
Sets the authentication token.

Properties

Methods

getToken()

Returns the current security token.

public getToken() : TokenInterface|null
Return values
TokenInterface|null

A TokenInterface instance or null if no authentication information is available

setInitializer()

public setInitializer(callable|null $initializer) : void
Parameters
$initializer : callable|null
Return values
void

setToken()

Sets the authentication token.

public setToken([TokenInterface $token = null ]) : mixed
Parameters
$token : TokenInterface = null

A TokenInterface token, or null if no further authentication information should be stored

Return values
mixed

Search results