PHP 클래스 Webiny\Component\Security\User\Providers\Memory\Memory

This provider is used when user accounts are defined inside the system configuration (hard-coded).
상속: implements Webiny\Component\Security\User\UserProviderInterface, use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
getUser ( Login $login ) : AbstractUser Get the user from user provided for the given instance of Login object.

비공개 메소드들

메소드 설명
addUsers ( array $users ) : boolean Check user data and, if valid, store them.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

getUser() 공개 메소드

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