Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamWrapper.php

function StreamWrapper::stream_open

File

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

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal