getUserRepository() public méthode

Returns the user repository.
public getUserRepository ( ) : Cartalyst\Sentinel\Users\UserRepositoryInterface
Résultat Cartalyst\Sentinel\Users\UserRepositoryInterface
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;
 }
 /**
  * Returns the user repository.
  *
  * @return \Cartalyst\Sentinel\Users\UserRepositoryInterface 
  * @static 
  */
 public static function getUserRepository()
 {
     return \Cartalyst\Sentinel\Sentinel::getUserRepository();
 }
Exemple #3
0
 /**
  * Returns the user repository.
  *
  * @return UserRepository
  */
 public function users()
 {
     return $this->sentinel->getUserRepository();
 }
Exemple #4
0
 /**
  * Creates a default links repository if none has been specified.
  *
  * @return \Cartalyst\Sentinel\Addons\Social\Repositories\LinkRepository
  */
 protected function createLinksRepository()
 {
     $model = 'Cartalyst\\Sentinel\\Addons\\Social\\Models\\Link';
     $users = $this->sentinel->getUserRepository();
     return new LinkRepository($users, $model);
 }