class UsernamePasswordToken extends AbstractToken
UsernamePasswordToken implements a username and password token.
Methods
__construct(string|object $user, string $credentials, string $providerKey, array $roles = array()) Constructor.
RoleInterface[] getRoles() Returns the user roles. from AbstractToken string getUsername() Returns the username. from AbstractToken mixed getUser() Returns a user representation. from AbstractToken setUser(mixed $user) Sets a user. from Abs