Pagekit\User\Model\User::isAuthenticated PHP 메소드

isAuthenticated() 공개 메소드

Check if the user has the authenticated role.
public isAuthenticated ( ) : boolean
리턴 boolean
    public function isAuthenticated()
    {
        return $this->hasRole(Role::ROLE_AUTHENTICATED);
    }

Usage Example

예제 #1
0
 /**
  * Proxy isAuthenticated
  * @return bool
  */
 public function isAuthenticated()
 {
     return $this->user->isAuthenticated();
 }