Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/vendor/wikimedia/shellbox/src/Command/OutputFileToStream.php
Ðазад
<?php namespace Shellbox\Command; use GuzzleHttp\Psr7\Utils; use Psr\Http\Message\StreamInterface; use Shellbox\FileUtils; use Shellbox\Multipart\MultipartReader; /** * Encapsulation of an output file that is copied to a stream */ class OutputFileToStream extends OutputFileWithContents { /** @var StreamInterface */ private $stream; /** * @internal * @param StreamInterface $stream */ public function __construct( StreamInterface $stream ) { $this->stream = $stream; } public function copyFromFile( $sourcePath ) { Utils::copyToStream( FileUtils::openInputFileStream( $sourcePath ), $this->stream ); $this->setReceived(); } public function getContents() { $this->stream->rewind(); return $this->stream->getContents(); } public function readFromMultipart( MultipartReader $multipartReader ) { $multipartReader->copyPartToStream( $this->stream ); $this->setReceived(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка