/**
* @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());
}}