PHP 7.4.33
Preview: PsrStream.php Size: 740 B
/home/godevadmin/www/admin/vendor/aws/Aws/Handler/GuzzleV5/PsrStream.php

<?php
namespace Aws\Handler\GuzzleV5;

use GuzzleHttp\Stream\StreamDecoratorTrait;
use GuzzleHttp\Stream\StreamInterface as GuzzleStreamInterface;
use Psr\Http\Message\StreamInterface as Psr7StreamInterface;

/**
 * Adapts a Guzzle 5 Stream to a PSR-7 Stream.
 *
 * @codeCoverageIgnore
 */
class PsrStream implements Psr7StreamInterface
{
    use StreamDecoratorTrait;

    /** @var GuzzleStreamInterface */
    private $stream;

    public function __construct(GuzzleStreamInterface $stream)
    {
        $this->stream = $stream;
    }

    public function rewind()
    {
        $this->stream->seek(0);
    }

    public function getContents()
    {
        return $this->stream->getContents();
    }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
6.83 KB lrwxrwxr-x 2024-06-18 20:10:20
Edit Download
565 B lrwxrwxr-x 2024-06-18 20:10:20
Edit Download
740 B lrwxrwxr-x 2024-06-18 20:10:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).