From b76e2ff898b23745d4c9aaee49eeb7d88f2896ab Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 2 Mar 2017 22:49:24 -0500 Subject: Updated mailgun plugin --- .../message-factory/src/RequestFactory.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 inc/mailgun/php-http/message-factory/src/RequestFactory.php (limited to 'inc/mailgun/php-http/message-factory/src/RequestFactory.php') diff --git a/inc/mailgun/php-http/message-factory/src/RequestFactory.php b/inc/mailgun/php-http/message-factory/src/RequestFactory.php new file mode 100644 index 0000000..624e82f --- /dev/null +++ b/inc/mailgun/php-http/message-factory/src/RequestFactory.php @@ -0,0 +1,34 @@ + + */ +interface RequestFactory +{ + /** + * Creates a new PSR-7 request. + * + * @param string $method + * @param string|UriInterface $uri + * @param array $headers + * @param resource|string|StreamInterface|null $body + * @param string $protocolVersion + * + * @return RequestInterface + */ + public function createRequest( + $method, + $uri, + array $headers = [], + $body = null, + $protocolVersion = '1.1' + ); +} -- cgit v1.2.3