You are here

public static function StreamWrapper::register in Zircon Profile 8.0

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

Registers the stream wrapper if needed

1 call to StreamWrapper::register()
StreamWrapper::getResource in vendor/guzzlehttp/psr7/src/StreamWrapper.php
Returns a resource representing the stream.

File

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

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

public static function register() {
  if (!in_array('guzzle', stream_get_wrappers())) {
    stream_wrapper_register('guzzle', __CLASS__);
  }
}