You are here

public function StreamWrapper::stream_open in Auth0 Single Sign On 8.2

File

vendor/guzzlehttp/psr7/src/StreamWrapper.php, line 68

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

public function stream_open($path, $mode, $options, &$opened_path) {
  $options = stream_context_get_options($this->context);
  if (!isset($options['guzzle']['stream'])) {
    return false;
  }
  $this->mode = $mode;
  $this->stream = $options['guzzle']['stream'];
  return true;
}