Class CRUDUserProvider
The implementation of the UserProviderInterface to work with the CRUDlex API.
- CRUDlex\CRUDUserProvider implements Symfony\Component\Security\Core\User\UserProviderInterface
public
|
#
__construct( CRUDlex\CRUDData $userData, CRUDlex\CRUDData $userRoleData, string $usernameField = 'username', string $passwordField = 'password', string $saltField = 'salt' )
Constructor. |
public
|
#
loadUserByUsername( string $username )
Loads and returns an user by username. Throws an UsernameNotFoundException on not existing username. |
public
|
#
refreshUser( Symfony\Component\Security\Core\User\UserInterface $user )
Reloads and returns the given user. Throws an UsernameNotFoundException if the user ceased to exist meanwhile. |
public
boolean
|
#
supportsClass( string $class )
Tests whether the given user class is supported by this UserProvider. |
protected
|
$usernameField
The CRUDEntity fieldname of the username. |
|
protected
|
$passwordField
The fieldname of the password (hash). |
|
protected
|
$saltField
The fieldname of the password hash salt. |
|
protected
|
$userData
Holds the CRUDData instance to grab the user data from. |
|
protected
|
$userRoleData
Holds the CRUDData instance to grab the user role data from. |