You are here

protected function LazyOpenStream::createStream in Auth0 Single Sign On 8.2

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));
}