Skip to content

Commit

Permalink
Add support for psr/http-factory:1.0 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Jul 31, 2018
1 parent fa699b6 commit 7d19904
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 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",
"zendframework/zend-diactoros": "^1.3"
},
"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 @@ -2,9 +2,8 @@

namespace Http\Factory\Diactoros;

use Interop\Http\Factory\RequestFactoryInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;
use Zend\Diactoros\Request;

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 @@ -2,7 +2,7 @@

namespace Http\Factory\Diactoros;

use Interop\Http\Factory\ResponseFactoryInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\Response;

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

use Http\Factory\Diactoros\UriFactory;
use Interop\Http\Factory\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UriInterface;
use Zend\Diactoros\ServerRequest;
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\Diactoros;

use Interop\Http\Factory\StreamFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Psr\Http\Message\StreamInterface;
use Zend\Diactoros\Stream;

Expand Down
2 changes: 1 addition & 1 deletion src/UploadedFileFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Http\Factory\Diactoros;

use Interop\Http\Factory\UploadedFileFactoryInterface;
use Psr\Http\Message\UploadedFileFactoryInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UploadedFileInterface;
use Zend\Diactoros\UploadedFile;
Expand Down
2 changes: 1 addition & 1 deletion src/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Http\Factory\Diactoros;

use Interop\Http\Factory\UriFactoryInterface;
use Psr\Http\Message\UriFactoryInterface;
use Psr\Http\Message\UriInterface;
use Zend\Diactoros\Uri;

Expand Down

0 comments on commit 7d19904

Please sign in to comment.