summaryrefslogtreecommitdiff
path: root/inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php')
-rw-r--r--inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php b/inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php
new file mode 100644
index 0000000..10f4d3f
--- /dev/null
+++ b/inc/mailgun/php-http/message/src/StreamFactory/GuzzleStreamFactory.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Http\Message\StreamFactory;
+
+use Http\Message\StreamFactory;
+
+/**
+ * Creates Guzzle streams.
+ *
+ * @author Михаил Красильников <m.krasilnikov@yandex.ru>
+ */
+final class GuzzleStreamFactory implements StreamFactory
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function createStream($body = null)
+ {
+ return \GuzzleHttp\Psr7\stream_for($body);
+ }
+}