public function getResponse()
    {
        $statusCode = 200;
        $page = $this->getPage();
        if (!$page) {
            $statusCode = 404;
            $page = $this->getNotFoundPage();
        }

        return new Response(
            $page ? $page->getContent() : 'Not found',
            $statusCode
        );
    }
public function getResponse()
    {
        $statusCode = 200;
        $page = $this->getPage();
        if (!$page) {
            $statusCode = 404;
            $page = $this->getNotFoundPage();
        }

        return new Response(
            $page ? $page->getContent() : 'Not found',
            $statusCode
        );
    }
public function getResponse ( ) { $ statusCode = 200 ; $ page = $ this -> getPage ( ) ; if ( ! $ page ) { $ statusCode = 404 ; $ page = $ this -> getNotFoundPage ( ) ; } return new Response ( $ page ? $ page -> getContent ( ) : 'Not found' , $ statusCode ) ; }
Returns the response for the current page URI

If the current page URI was not found, the URI "/NotFound/" will be checked

@return Response|NULL
Returns the response for the current page URI