Cartalyst\Sentinel\Sentinel::getUserRepository PHP Méthode

getUserRepository() public méthode

Returns the user repository.
public getUserRepository ( ) : Cartalyst\Sentinel\Users\UserRepositoryInterface
Résultat Cartalyst\Sentinel\Users\UserRepositoryInterface
    public function getUserRepository()
    {
        return $this->users;
    }

Usage Example

Exemple #1
0
 /**
  * Authenticate a user via the id.
  *
  * @param  mixed $id
  *
  * @return bool
  */
 public function byId($id)
 {
     if ($user = $this->sentinel->getUserRepository()->findById($id)) {
         $this->sentinel->setUser($user);
         return true;
     }
     return false;
 }
All Usage Examples Of Cartalyst\Sentinel\Sentinel::getUserRepository