$transformer =
$this->
getContainer()->
get(RequestTransformerInterface::
class);
$this->requestTransformer =
$transformer;
} public function setServerParameter(string
$key, mixed
$value): void
{ $this->server
[$key] =
$value;
} protected function filterRequest(DomRequest
$request): Request
{ $filteredRequest = parent::
filterRequest($request);
$transformedRequest =
$this->requestTransformer->
transform($filteredRequest);
return $this->lastRequest =
$transformedRequest;
} /**
* @param Response $response
*/
protected function filterResponse(object
$response): DomResponse
{ $event =
new BeforeSendResponseEvent($this->lastRequest,
$response);