/var/www/vhosts/ihelp.ro/_OLD/vendor/laminas/laminas-diactoros/src/Response
NameSizeModeActions
ArraySerializer.php29480644editdlrm
EmptyResponse.php12010644editdlrm
HtmlResponse.php23770644editdlrm
InjectContentTypeTrait.php10140644editdlrm
JsonResponse.php48550644editdlrm
RedirectResponse.php16910644editdlrm
Serializer.php33660644editdlrm
TextResponse.php23860644editdlrm
XmlResponse.php24020644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/laminas/laminas-diactoros/src/Response/XmlResponse.php (2402B)
createBody($xml), $status, $this->injectContentType('application/xml; charset=utf-8', $headers) ); } /** * Create the message body. * * @param string|StreamInterface $xml * @throws Exception\InvalidArgumentException if $xml is neither a string or stream. */ private function createBody($xml) : StreamInterface { if ($xml instanceof StreamInterface) { return $xml; } if (! is_string($xml)) { throw new Exception\InvalidArgumentException(sprintf( 'Invalid content (%s) provided to %s', (is_object($xml) ? get_class($xml) : gettype($xml)), __CLASS__ )); } $body = new Stream('php://temp', 'wb+'); $body->write($xml); $body->rewind(); return $body; } }