protected function filterEmbeddedResponse(Request
$fake_request, Response
$embedded_response) { assert($embedded_response instanceof HtmlResponse ||
$embedded_response instanceof AjaxResponse
);
return $this->
filterResponse($fake_request, HttpKernelInterface::SUB_REQUEST,
$embedded_response);
} /**
* Filters the given response.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request for which a response is being sent.
* @param int $request_type
* The request type. Can either be
* \Symfony\Component\HttpKernel\HttpKernelInterface::MAIN_REQUEST or
* \Symfony\Component\HttpKernel\HttpKernelInterface::SUB_REQUEST.
* @param \Symfony\Component\HttpFoundation\Response $response
* The response to filter.
*
* @return \Symfony\Component\HttpFoundation\Response
* The filtered response.
*/