class UserSecurityIdentity implements SecurityIdentityInterface
A SecurityIdentity implementation used for actual users
__construct(string $username, string $class) Constructor | ||
static UserSecurityIdentity | fromAccount(UserInterface $user) Creates a user security identity from a UserInterface | |
static UserSecurityIdentity | fromToken(TokenInterface $token) Creates a user security identity from a TokenInterface | |
string | getUsername() Returns the username | |
string | getClass() Returns the user's class name | |
equals(SecurityIdentityInterface $sid) This method is used to compare two security identities in order to not rely on referential equality. | ||
string | __toString() A textual representation of this security identity. |
Constructor
Creates a user security identity from a UserInterface
Creates a user security identity from a TokenInterface
Returns the username
Returns the user's class name
This method is used to compare two security identities in order to not rely on referential equality.
A textual representation of this security identity.
This is not used for equality comparison, but only for debugging.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Domain/UserSecurityIdentity.html