Nette\Security\User::getAuthorizator PHP 메소드

getAuthorizator() 공개 메소드

Returns current authorization handler.
public getAuthorizator ( $need = TRUE ) : Nette\Security\IAuthorizator
리턴 Nette\Security\IAuthorizator
    public function getAuthorizator($need = TRUE)
    {
        if ($need && !$this->authorizator) {
            throw new Nette\InvalidStateException('Authorizator has not been set.');
        }
        return $this->authorizator;
    }