DomResponse example

/** * @param Response $response */
    protected function filterResponse(object $response): DomResponse
    {
        // this is needed to support StreamedResponse         ob_start();
        $response->sendContent();
        $content = ob_get_clean();

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

        return new DomResponse($content$response->getStatusCode()$response->headers->all());
    }
}
Home | Imprint | This part of the site doesn't use cookies.