You are here

protected function StreamDecoratorTrait::createStream in Lockr 7.3

Implement in subclasses to dynamically create streams when requested.

Return value

StreamInterface

Throws

\BadMethodCallException

1 call to StreamDecoratorTrait::createStream()
StreamDecoratorTrait::__get in vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
2 methods override StreamDecoratorTrait::createStream()
LazyOpenStream::createStream in vendor/guzzlehttp/psr7/src/LazyOpenStream.php
Creates the underlying stream lazily when required.
MultipartStream::createStream in vendor/guzzlehttp/psr7/src/MultipartStream.php
Create the aggregate stream that will be used to upload the POST data

File

vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php, line 145

Class

StreamDecoratorTrait
Stream decorator trait @property StreamInterface stream

Namespace

GuzzleHttp\Psr7

Code

protected function createStream() {
  throw new \BadMethodCallException('Not implemented');
}