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
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

__construct() public method

Constructor.
public __construct ( )

getUser() public method

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.
return Webiny\Component\Security\User\AbstractUser