PHP 클래스 Cartalyst\Sentinel\Users\IlluminateUserRepository

상속: implements Cartalyst\Sentinel\Users\UserRepositoryInterface, use trait Cartalyst\Support\Traits\EventTrait, use trait Cartalyst\Support\Traits\RepositoryTrait
파일 보기 프로젝트 열기: cartalyst/sentinel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$hasher Cartalyst\Sentinel\Hashing\HasherInterface The hasher instance.
$model string The Eloquent user model name.

공개 메소드들

메소드 설명
__construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void Create a new Illuminate user repository.
create ( array $credentials, Closure $callback = null ) {@inheritDoc}
fill ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : void Fills a user with the given credentials, intelligently.
findByCredentials ( array $credentials ) {@inheritDoc}
findById ( $id ) {@inheritDoc}
findByPersistenceCode ( $code ) {@inheritDoc}
getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface Returns the hasher instance.
recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
setHasher ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher ) : void Sets the hasher instance.
update ( $user, array $credentials ) {@inheritDoc}
validForCreation ( array $credentials ) {@inheritDoc}
validForUpdate ( $user, array $credentials ) {@inheritDoc}
validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) {@inheritDoc}

보호된 메소드들

메소드 설명
parseCredentials ( array $credentials, array $loginNames ) : array Parses the given credentials to return logins, password and others.
validateUser ( array $credentials, integer $id = null ) : boolean Validates the user.

메소드 상세

__construct() 공개 메소드

Create a new Illuminate user repository.
public __construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void
$hasher Cartalyst\Sentinel\Hashing\HasherInterface
$dispatcher Illuminate\Events\Dispatcher
$model string
리턴 void

create() 공개 메소드

{@inheritDoc}
public create ( array $credentials, Closure $callback = null )
$credentials array
$callback Closure

fill() 공개 메소드

Fills a user with the given credentials, intelligently.
public fill ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : void
$user Cartalyst\Sentinel\Users\UserInterface
$credentials array
리턴 void

findByCredentials() 공개 메소드

{@inheritDoc}
public findByCredentials ( array $credentials )
$credentials array

findById() 공개 메소드

{@inheritDoc}
public findById ( $id )

findByPersistenceCode() 공개 메소드

{@inheritDoc}
public findByPersistenceCode ( $code )

getHasher() 공개 메소드

Returns the hasher instance.
public getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface
리턴 Cartalyst\Sentinel\Hashing\HasherInterface

parseCredentials() 보호된 메소드

Parses the given credentials to return logins, password and others.
protected parseCredentials ( array $credentials, array $loginNames ) : array
$credentials array
$loginNames array
리턴 array

recordLogin() 공개 메소드

{@inheritDoc}
public recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

recordLogout() 공개 메소드

{@inheritDoc}
public recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

setHasher() 공개 메소드

Sets the hasher instance.
public setHasher ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher ) : void
$hasher Cartalyst\Sentinel\Hashing\HasherInterface
리턴 void

update() 공개 메소드

{@inheritDoc}
public update ( $user, array $credentials )
$credentials array

validForCreation() 공개 메소드

{@inheritDoc}
public validForCreation ( array $credentials )
$credentials array

validForUpdate() 공개 메소드

{@inheritDoc}
public validForUpdate ( $user, array $credentials )
$credentials array

validateCredentials() 공개 메소드

{@inheritDoc}
public validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials )
$user Cartalyst\Sentinel\Users\UserInterface
$credentials array

validateUser() 보호된 메소드

Validates the user.
protected validateUser ( array $credentials, integer $id = null ) : boolean
$credentials array
$id integer
리턴 boolean

프로퍼티 상세

$hasher 보호되어 있는 프로퍼티

The hasher instance.
protected HasherInterface,Cartalyst\Sentinel\Hashing $hasher
리턴 Cartalyst\Sentinel\Hashing\HasherInterface

$model 보호되어 있는 프로퍼티

The Eloquent user model name.
protected string $model
리턴 string