UserSecurityIdentity::equals()

equals(SecurityIdentityInterface $sid) This method is used to compare two security identities in order to not rely on referential equality. Parameters SecurityIdentityInterface $sid

UserSecurityIdentity

class UserSecurityIdentity implements SecurityIdentityInterface A SecurityIdentity implementation used for actual users Methods __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 getClas

UserSecurityIdentity::fromAccount()

static UserSecurityIdentity fromAccount(UserInterface $user) Creates a user security identity from a UserInterface Parameters UserInterface $user Return Value UserSecurityIdentity

UserProviderInterface::supportsClass()

bool supportsClass(string $class) Whether this provider supports the given user class. Parameters string $class Return Value bool

UserProviderInterface::refreshUser()

UserInterface refreshUser(UserInterface $user) Refreshes the user for the account interface. It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map. Parameters UserInterface $user Return Value UserInterface Exceptions UnsupportedUserException if the account is not supported

UserProviderInterface

interface UserProviderInterface Represents a class that loads UserInterface objects from some source for the authentication system. In a typical authentication configuration, a username (i.e. some unique user identifier) credential enters the system (via form login, or any method). The user provider that is configured with that authentication method is asked to load the UserInterface object for the given username (via loadUserByUsername) so that the rest of the process can continue. Internal

UserProviderInterface::loadUserByUsername()

UserInterface loadUserByUsername(string $username) Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. Parameters string $username The username Return Value UserInterface Exceptions UsernameNotFoundException if the user is not found

UserProviderFactoryInterface::getKey()

getKey()

UserProviderFactoryInterface

interface UserProviderFactoryInterface UserProviderFactoryInterface is the interface for all user provider factories. Methods create(ContainerBuilder $container, $id, $config) getKey() addConfiguration(NodeDefinition $builder) Details create(ContainerBuilder $container, $id, $config) Parameters ContainerBuilder $container $id $config getKey() addConfigur

UserProviderFactoryInterface::addConfiguration()

addConfiguration(NodeDefinition $builder) Parameters NodeDefinition $builder