AbstractToken

AbstractToken

class AbstractToken implements TokenInterface

Base class for Token instances.

Methods

__construct(array $roles = array())

Constructor.

RoleInterface[] getRoles()

Returns the user roles.

string getUsername()

Returns the username.

mixed getUser()

Returns a user representation.

登录查看完整内容