PHP Class Webiny\Component\Security\User\Providers\Memory\Memory

This provider is used when user accounts are defined inside the system configuration (hard-coded).
Inheritance: implements Webiny\Component\Security\User\UserProviderInterface, use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
getUser ( Login $login ) : AbstractUser Get the user from user provided for the given instance of Login object.

Private Methods

Méthode Description
addUsers ( array $users ) : boolean Check user data and, if valid, store them.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

getUser() public méthode

NOTE: The method gets the users based on his username only, password is not verified, this is part of the authentication process.
public getUser ( Login $login ) : AbstractUser
$login Webiny\Component\Security\Authentication\Providers\Login Instance of Login object.
Résultat Webiny\Component\Security\User\AbstractUser