protected function filterResponse(Response $response, $container)
    {
        $crawler = new Crawler($response->getContent());

        $response->setContent(
            $this->makeTitle($crawler).
            $this->fetchContents($crawler, $container).
            $this->fetchJs($crawler)
        );

        return $this;
    }
protected function filterResponse(Response $response, $container)
    {
        $crawler = new Crawler($response->getContent());

        $response->setContent(
            $this->makeTitle($crawler).
            $this->fetchContents($crawler, $container).
            $this->fetchJs($crawler)
        );

        return $this;
    }
protected function filterResponse ( Response $ response , $ container ) { $ crawler = new Crawler ( $ response -> getContent ( ) ) ; $ response -> setContent ( $ this -> makeTitle ( $ crawler ) . $ this -> fetchContents ( $ crawler , $ container ) . $ this -> fetchJs ( $ crawler ) ) ; return $ this ; }
Prepare the PJAX-specific response content.

@param Response $response
@param string   $container

@return $this
Prepare the PJAX - specific response content .