src/Page/PageServiceManager.php
protected function createResponse(PageInterface $page)
    {
        if ($page->getTarget()) {
            $page->addHeader('Location', $this->router->generate($page->getTarget()));
            $response = new Response('', 302, $page->getHeaders() ?: []);
        } else {
            $response = new Response('', 200, $page->getHeaders() ?: []);
        }

        return $response;
    }
protected function createResponse(PageInterface $page)
    {
        if ($page->getTarget()) {
            $page->addHeader('Location', $this->router->generate($page->getTarget()));
            $response = new Response('', 302, $page->getHeaders() ?: []);
        } else {
            $response = new Response('', 200, $page->getHeaders() ?: []);
        }

        return $response;
    }
protected function createResponse ( PageInterface $ page ) { if ( $ page -> getTarget ( ) ) { $ page -> addHeader ( 'Location' , $ this -> router -> generate ( $ page -> getTarget ( ) ) ) ; $ response = new Response ( '' , 302 , $ page -> getHeaders ( ) ? : [ ] ) ; } else { $ response = new Response ( '' , 200 , $ page -> getHeaders ( ) ? : [ ] ) ; } return $ response ; }
Creates a base response for given page.

@param PageInterface $page

@return Response
Creates a base response for given page .