DiactorosStreamFactory.php
6 months ago
GuzzleStreamFactory.php
6 months ago
SlimStreamFactory.php
6 months ago
GuzzleStreamFactory.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message\StreamFactory; |
| 4 | |
| 5 | use AmeliaHttp\Message\StreamFactory; |
| 6 | |
| 7 | /** |
| 8 | * Creates Guzzle streams. |
| 9 | * |
| 10 | * @author Ми� |
| 11 | аил Красильников <m.krasilnikov@yandex.ru> |
| 12 | */ |
| 13 | final class GuzzleStreamFactory implements StreamFactory |
| 14 | { |
| 15 | /** |
| 16 | * {@inheritdoc} |
| 17 | */ |
| 18 | public function createStream($body = null) |
| 19 | { |
| 20 | return \AmeliaVendor\GuzzleHttp\Psr7\Utils::streamFor($body); |
| 21 | } |
| 22 | } |
| 23 |