Skip to content

Commit

Permalink
Add support for psr/http-factory:1.0 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Jul 31, 2018
1 parent 43fe9db commit 3486165
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"psr/http-factory-implementation": "^1.0"
},
"require": {
"http-interop/http-factory": "^0.4",
"psr/http-factory": "^1.0",
"guzzlehttp/psr7": "^1.4.2"
},
"require-dev": {
"http-interop/http-factory-tests": "^0.4",
"http-interop/http-factory-tests": "^0.5",
"phpunit/phpunit": "^6.5"
},
"autoload": {
Expand Down
3 changes: 1 addition & 2 deletions src/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
namespace Http\Factory\Guzzle;

use GuzzleHttp\Psr7\Request;
use Interop\Http\Factory\RequestFactoryInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;

class RequestFactory implements RequestFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Http\Factory\Guzzle;

use GuzzleHttp\Psr7\Response;
use Interop\Http\Factory\ResponseFactoryInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;

class ResponseFactory implements ResponseFactoryInterface
Expand Down
3 changes: 1 addition & 2 deletions src/ServerRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
namespace Http\Factory\Guzzle;

use GuzzleHttp\Psr7\ServerRequest;
use Interop\Http\Factory\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UriInterface;

class ServerRequestFactory implements ServerRequestFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/StreamFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Http\Factory\Guzzle;

use Interop\Http\Factory\StreamFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Psr\Http\Message\StreamInterface;

class StreamFactory implements StreamFactoryInterface
Expand Down
2 changes: 1 addition & 1 deletion src/UploadedFileFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Http\Factory\Guzzle;

use GuzzleHttp\Psr7\UploadedFile;
use Interop\Http\Factory\UploadedFileFactoryInterface;
use Psr\Http\Message\UploadedFileFactoryInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UploadedFileInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Http\Factory\Guzzle;

use GuzzleHttp\Psr7\Uri;
use Interop\Http\Factory\UriFactoryInterface;
use Psr\Http\Message\UriFactoryInterface;
use Psr\Http\Message\UriInterface;

class UriFactory implements UriFactoryInterface
Expand Down

0 comments on commit 3486165

Please sign in to comment.