PHP Class Chrisbjr\ApiGuard\Providers\Auth\Sentinel

Inheritance: implements Chrisbjr\ApiGuard\Contracts\Providers\Auth
Afficher le fichier Open project: chrisbjr/api-guard

Protected Properties

Свойство Type Description
$sentinel Cartalyst\Sentinel\Sentinel

Méthodes publiques

Méthode Description
__construct ( Sentinel $sentinel )
byCredentials ( array $credentials ) : mixed Check a user's credentials.
byId ( mixed $id ) : boolean Authenticate a user via the id.
user ( ) : Cartalyst\Sentinel\Users\UserInterface Get the currently authenticated user.

Method Details

__construct() public méthode

public __construct ( Sentinel $sentinel )
$sentinel Cartalyst\Sentinel\Sentinel

byCredentials() public méthode

Check a user's credentials.
public byCredentials ( array $credentials ) : mixed
$credentials array
Résultat mixed

byId() public méthode

Authenticate a user via the id.
public byId ( mixed $id ) : boolean
$id mixed
Résultat boolean

user() public méthode

Get the currently authenticated user.
public user ( ) : Cartalyst\Sentinel\Users\UserInterface
Résultat Cartalyst\Sentinel\Users\UserInterface

Property Details

$sentinel protected_oe property

protected Sentinel,Cartalyst\Sentinel $sentinel
Résultat Cartalyst\Sentinel\Sentinel