PostAuthenticationGuardToken
class PostAuthenticationGuardToken extends AbstractToken implements GuardTokenInterface
Used as an "authenticated" token, though it could be set to not-authenticated later.
If you're using Guard authentication, you must use a class that implements GuardTokenInterface as your authenticated token (like this class).
Methods
{@inheritdoc}
{@inheritdoc}
This is meant to be only an authenticated token, where credentials have already been used and are thus cleared.
Returns the provider (firewall) key.
Details
setUser(string|object $user)
Sets the user in the token.
The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string.
string
__toString()
Returns a string representation of the Token.
This is only to be used for debugging purposes.