public static function StreamWrapper::createStreamContext in Auth0 Single Sign On 8.2
Creates a stream context that can be used to open a stream as a php stream resource.
Parameters
StreamInterface $stream:
Return value
resource
1 call to StreamWrapper::createStreamContext()
- StreamWrapper::getResource in vendor/
guzzlehttp/ psr7/ src/ StreamWrapper.php - Returns a resource representing the stream.
File
- vendor/
guzzlehttp/ psr7/ src/ StreamWrapper.php, line 51
Class
- StreamWrapper
- Converts Guzzle streams into PHP stream resources.
Namespace
GuzzleHttp\Psr7Code
public static function createStreamContext(StreamInterface $stream) {
return stream_context_create([
'guzzle' => [
'stream' => $stream,
],
]);
}