protected function filterResponse($response)
    {
        // this is needed to support StreamedResponse
        ob_start();
        $response->sendContent();
        $content = ob_get_clean();

        return new DomResponse($content, $response->getStatusCode(), $response->headers->all());
    }
protected function filterResponse($response)
    {
        // this is needed to support StreamedResponse
        ob_start();
        $response->sendContent();
        $content = ob_get_clean();

        return new DomResponse($content, $response->getStatusCode(), $response->headers->all());
    }
protected function filterResponse ( $ response ) { // this is needed to support StreamedResponse ob_start ( ) ; $ response -> sendContent ( ) ; $ content = ob_get_clean ( ) ; return new DomResponse ( $ content , $ response -> getStatusCode ( ) , $ response -> headers -> all ( ) ) ; }
Converts the HttpKernel response to a BrowserKit response.

@return DomResponse A DomResponse instance
Converts the HttpKernel response to a BrowserKit response .