You are here

protected function LazyOpenStream::createStream in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/src/LazyOpenStream.php \GuzzleHttp\Psr7\LazyOpenStream::createStream()

Creates the underlying stream lazily when required.

Return value

StreamInterface

Overrides StreamDecoratorTrait::createStream

File

vendor/guzzlehttp/psr7/src/LazyOpenStream.php, line 35

Class

LazyOpenStream
Lazily reads or writes to a file that is opened only after an IO operation take place on the stream.

Namespace

GuzzleHttp\Psr7

Code

protected function createStream() {
  return stream_for(try_fopen($this->filename, $this->mode));
}