Symfony2 API
Class

Symfony\Component\Security\Core\Exception\UsernameNotFoundException

class UsernameNotFoundException extends AuthenticationException

UsernameNotFoundException is thrown if a User cannot be found by its username.

Methods

string getMessageKey()

Message key to be used by the translation component.

string getUsername()

Get the username.

setUsername(string $username)

Set the username.

serialize()

unserialize($str)

Details

at line 27
public string getMessageKey()

Message key to be used by the translation component.

Return Value

string

at line 37
public string getUsername()

Get the username.

Return Value

string

at line 47
public setUsername(string $username)

Set the username.

Parameters

string $username

at line 55
public serialize()

at line 66
public unserialize($str)

Parameters

$str