src/Security/Security.php
protected function delegateToHandler(RequestHandler $handler, $title, array $templates = [])
    {
        $result = $handler->handleRequest($this->getRequest());

        // Return the customised controller - may be used to render a Form (e.g. login form)
        if (is_array($result)) {
            $result = $this->renderWrappedController($title, $result, $templates);
        }

        return $result;
    }
protected function delegateToHandler(RequestHandler $handler, $title, array $templates = [])
    {
        $result = $handler->handleRequest($this->getRequest());

        // Return the customised controller - may be used to render a Form (e.g. login form)
        if (is_array($result)) {
            $result = $this->renderWrappedController($title, $result, $templates);
        }

        return $result;
    }
protected function delegateToHandler ( RequestHandler $ handler , $ title , array $ templates = [ ] ) { $ result = $ handler -> handleRequest ( $ this -> getRequest ( ) ) ; // Return the customised controller - may be used to render a Form (e.g. login form) if ( is_array ( $ result ) ) { $ result = $ this -> renderWrappedController ( $ title , $ result , $ templates ) ; } return $ result ; }
Delegate to another RequestHandler, rendering any fragment arrays into an appropriate.
controller.

@param RequestHandler $handler
@param string $title The title of the form
@param array $templates
@return array|HTTPResponse|RequestHandler|DBHTMLText|string
Delegate to another RequestHandler rendering any fragment arrays into an appropriate . controller .