TokenStorage

TokenStorage

class TokenStorage implements TokenStorageInterface

TokenStorage contains a TokenInterface.

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

Methods

TokenInterface|null getToken()

Returns the current security token.

setToken(TokenInterface $token = null)

Sets the authentication token.

Details

TokenInterface|null getToken()

Returns the current security token.

Return Value

TokenInterface|null A TokenInterface instance or null if no authentication information is available

setToken(TokenInterface $token = null)

Sets the authentication token.

Parameters

TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部