src/Middleware/AuthorizationMiddleware.php
protected function getHandler()
    {
        $handler = $this->getConfig('unauthorizedHandler');
        if (!is_array($handler)) {
            $handler = [
                'className' => $handler,
            ];
        }
        if (!isset($handler['className'])) {
            throw new RuntimeException('Missing `className` key from handler config.');
        }

        return HandlerFactory::create($handler['className']);
    }
protected function getHandler()
    {
        $handler = $this->getConfig('unauthorizedHandler');
        if (!is_array($handler)) {
            $handler = [
                'className' => $handler,
            ];
        }
        if (!isset($handler['className'])) {
            throw new RuntimeException('Missing `className` key from handler config.');
        }

        return HandlerFactory::create($handler['className']);
    }
protected function getHandler ( ) { $ handler = $ this -> getConfig ( 'unauthorizedHandler' ) ; if ( ! is_array ( $ handler ) ) { $ handler = [ 'className' => $ handler , ] ; } if ( ! isset ( $ handler [ 'className' ] ) ) { throw new RuntimeException ( 'Missing `className` key from handler config.' ) ; } return HandlerFactory :: create ( $ handler [ 'className' ] ) ; }
Returns unauthorized handler.

@return \Authorization\Middleware\UnauthorizedHandler\HandlerInterface
Returns unauthorized handler .