CoreFiles by mySites.guru
StreamFactory.php25 lines, 559 bytes, from Joomla_4.2.9-Stable-Full_Package.zip
Raw History Compare with 4.2.8
md5
6e2372198c56da284aa0345d0a9fb6b2
sha1
b100988bc361b4e6a0450035cca6d3dbf5e6e87e
sha256
c64fead081e385a501e77799d4bc0af16e57a669766b74ba5c98b04b491401bf
<?php

namespace Http\Message;

use Psr\Http\Message\StreamInterface;

/**
 * Factory for PSR-7 Stream.
 *
 * @author Márk Sági-Kazár <[email protected]>
 */
interface StreamFactory
{
    /**
     * Creates a new PSR-7 stream.
     *
     * @param string|resource|StreamInterface|null $body
     *
     * @return StreamInterface
     *
     * @throws \InvalidArgumentException If the stream body is invalid.
     * @throws \RuntimeException         If creating the stream from $body fails. 
     */
    public function createStream($body = null);
}

The same content is in 94 releases, Joomla 4.0.0-beta to 4.3.4. See them all, or every version of this file.