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
__construct(UserInterface $user, string $providerKey, array $roles)
RoleInterface[] getRoles() Returns the user roles. from AbstractToken string getUsername()