Nette\Security\User::getAuthorizator PHP Method

getAuthorizator() public method

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