login() public method

Persists a login for the given user.
public login ( Cartalyst\Sentinel\Users\UserInterface $user, boolean $remember = false ) : Cartalyst\Sentinel\Users\UserInterface | boolean
$user Cartalyst\Sentinel\Users\UserInterface
$remember boolean
return Cartalyst\Sentinel\Users\UserInterface | boolean
Esempio n. 1
0
 /**
  * Persists a login for the given user.
  *
  * @param \Cartalyst\Sentinel\Users\UserInterface $user
  * @param bool $remember
  * @return \Cartalyst\Sentinel\Users\UserInterface|bool 
  * @static 
  */
 public static function login($user, $remember = false)
 {
     return \Cartalyst\Sentinel\Sentinel::login($user, $remember);
 }
Esempio n. 2
0
 /**
  * Persists a login for the given user.
  *
  * @param  User $user
  * @param  bool $remember
  *
  * @return User|bool
  */
 public function login(User $user, $remember = false)
 {
     return $this->sentinel->login($user, $remember);
 }
Esempio n. 3
0
 /**
  * {@inheritDoc}
  */
 public function login($user)
 {
     return $this->sentinel->login($user);
 }