function StreamFactoryInterface::createStream
Create a new stream from a string.
The stream SHOULD be created with a temporary resource.
Parameters
string $content String content with which to populate the stream.:
Return value
2 methods override StreamFactoryInterface::createStream()
- HttpFactory::createStream in vendor/
guzzlehttp/ psr7/ src/ HttpFactory.php - Create a new stream from a string.
- Psr17Factory::createStream in vendor/
php-http/ discovery/ src/ Psr17Factory.php - Create a new stream from a string.
File
-
vendor/
psr/ http-factory/ src/ StreamFactoryInterface.php, line 16
Class
Namespace
Psr\Http\MessageCode
public function createStream(string $content = '') : StreamInterface;