function StreamFactoryInterface::createStreamFromResource
Create a new stream from an existing resource.
The stream MUST be readable and may be writable.
Parameters
resource $resource PHP resource to use as basis of stream.:
Return value
2 methods override StreamFactoryInterface::createStreamFromResource()
- HttpFactory::createStreamFromResource in vendor/
guzzlehttp/ psr7/ src/ HttpFactory.php - Create a new stream from an existing resource.
- Psr17Factory::createStreamFromResource in vendor/
php-http/ discovery/ src/ Psr17Factory.php
File
-
vendor/
psr/ http-factory/ src/ StreamFactoryInterface.php, line 44
Class
Namespace
Psr\Http\MessageCode
public function createStreamFromResource($resource) : StreamInterface;