PHP Interface Sulu\Component\Security\Authentication\UserRepositoryInterface

Inheritance: extends Symfony\Component\Security\Core\User\UserProviderInterface, extends Sulu\Component\Persistence\Repository\RepositoryInterface
Mostra file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
findUserById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface Returns the user with the given id.
findUserByIdentifier ( string $identifier ) : Sulu\Component\Security\Authentication\UserInterface Finds a user for a given email or username.
findUserWithSecurityById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface

Method Details

findUserById() public method

Returns the user with the given id.
public findUserById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface
$id integer The user to find
return Sulu\Component\Security\Authentication\UserInterface

findUserByIdentifier() public method

Finds a user for a given email or username.
public findUserByIdentifier ( string $identifier ) : Sulu\Component\Security\Authentication\UserInterface
$identifier string The email-address or username
return Sulu\Component\Security\Authentication\UserInterface

findUserWithSecurityById() public method

public findUserWithSecurityById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface
$id integer
return Sulu\Component\Security\Authentication\UserInterface