/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/HtmlResponse.php (2377B)
createBody($html), $status, $this->injectContentType('text/html; charset=utf-8', $headers) ); } /** * Create the message body. * * @param string|StreamInterface $html * @throws Exception\InvalidArgumentException if $html is neither a string or stream. */ private function createBody($html) : StreamInterface { if ($html instanceof StreamInterface) { return $html; } if (! is_string($html)) { throw new Exception\InvalidArgumentException(sprintf( 'Invalid content (%s) provided to %s', (is_object($html) ? get_class($html) : gettype($html)), __CLASS__ )); } $body = new Stream('php://temp', 'wb+'); $body->write($html); $body->rewind(); return $body; } }