responseFactory->createResponse($statusCode); foreach ($headers as $header => $value) { $response = $response->withHeader($header, $value); } $response->getBody()->write($content ?? ''); return $response->withProtocolVersion('1.1'); } /** * {@inheritdoc} * * @internal */ protected function getEncoder(): EncoderInterface { return $this->encoder; } /** * {@inheritdoc} * * @internal */ protected function getMediaType(): MediaTypeInterface { return $this->outputMediaType; } }