UsernameNotFoundException
extends AuthenticationException
in package
UsernameNotFoundException is thrown if a User cannot be found by its username.
Tags
Table of Contents
- $token : mixed
- $username : mixed
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- Returns all the necessary state of the object for serialization purposes.
- __unserialize() : void
- Restores the object state from an array given by __serialize().
- getMessageData() : array<string|int, mixed>
- Message data to be used by the translation component.
- getMessageKey() : string
- Message key to be used by the translation component.
- getToken() : TokenInterface|null
- Get the token.
- getUsername() : string
- Get the username.
- setToken() : mixed
- setUsername() : mixed
- Set the username.
Properties
$token
private
mixed
$token
$username
private
mixed
$username
Methods
__construct()
public
__construct([string $message = '' ], int $code[, Throwable $previous = null ]) : mixed
Parameters
- $message : string = ''
- $code : int
- $previous : Throwable = null
Return values
mixed —__serialize()
Returns all the necessary state of the object for serialization purposes.
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__unserialize()
Restores the object state from an array given by __serialize().
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —getMessageData()
Message data to be used by the translation component.
public
getMessageData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMessageKey()
Message key to be used by the translation component.
public
getMessageKey() : string
Return values
string —getToken()
Get the token.
public
getToken() : TokenInterface|null
Return values
TokenInterface|null —getUsername()
Get the username.
public
getUsername() : string
Return values
string —setToken()
public
setToken(TokenInterface $token) : mixed
Parameters
- $token : TokenInterface
Return values
mixed —setUsername()
Set the username.
public
setUsername(string $username) : mixed
Parameters
- $username : string