You are here

public function UploadedFile::getStream in Auth0 Single Sign On 8.2

Throws

RuntimeException if the upload was not successful.

Overrides UploadedFileInterface::getStream

1 call to UploadedFile::getStream()
UploadedFile::moveTo in vendor/guzzlehttp/psr7/src/UploadedFile.php

File

vendor/guzzlehttp/psr7/src/UploadedFile.php, line 225

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

public function getStream() {
  $this
    ->validateActive();
  if ($this->stream instanceof StreamInterface) {
    return $this->stream;
  }
  return new LazyOpenStream($this->file, 'r+');
}