���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/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 OutputFile { /** @var StreamInterface */ private $stream; public function __construct( StreamInterface $stream ) { $this->stream = $stream; } public function copyFromFile( $sourcePath ) { Utils::copyToStream( FileUtils::openInputFileStream( $sourcePath ), $this->stream ); $this->received = true; } public function getContents() { $this->stream->rewind(); return $this->stream->getContents(); } public function readFromMultipart( MultipartReader $multipartReader ) { $multipartReader->copyPartToStream( $this->stream ); $this->received = true; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.11 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�