Skip to content

Commit

Permalink
Merge pull request #54 from zf-fr/feature/http-middleware-0.5
Browse files Browse the repository at this point in the history
Add support for http-interop/http-middleware 0.5
  • Loading branch information
bakura10 authored Oct 23, 2017
2 parents cf0dfb2 + f706c53 commit 679e248
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 6.1.0

Add support for http-interop/http-middleware 0.5

# 6.0.3

* Fix another issue with validating Docker IP :D.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"aws/aws-sdk-php": "^3.0",
"psr/container": "^1.0",
"psr/http-message": "^1.0",
"http-interop/http-middleware": "^0.4.1"
"webimpress/http-middleware-compatibility": "^0.1.4"
},
"require-dev": {
"phpunit/phpunit": "~5.1",
Expand Down
4 changes: 2 additions & 2 deletions src/Listener/SilentFailingListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace ZfrEbWorker\Listener;

use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Psr\Http\Message\ServerRequestInterface;
use Webimpress\HttpMiddlewareCompatibility\HandlerInterface as DelegateInterface;
use Webimpress\HttpMiddlewareCompatibility\MiddlewareInterface;
use Zend\Diactoros\Response\EmptyResponse;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/WorkerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

namespace ZfrEbWorker\Middleware;

use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Webimpress\HttpMiddlewareCompatibility\HandlerInterface as DelegateInterface;
use Webimpress\HttpMiddlewareCompatibility\MiddlewareInterface;
use ZfrEbWorker\Exception\InvalidArgumentException;
use ZfrEbWorker\Exception\RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion test/Listener/SilentFailingListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace ZfrEbWorkerTest\Listener;

use Interop\Http\ServerMiddleware\DelegateInterface;
use Psr\Http\Message\ServerRequestInterface;
use Webimpress\HttpMiddlewareCompatibility\HandlerInterface as DelegateInterface;
use ZfrEbWorker\Listener\SilentFailingListener;

/**
Expand Down
4 changes: 2 additions & 2 deletions test/Middleware/WorkerMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
namespace ZfrEbWorkerTest\Middleware;

use DateTimeImmutable;
use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Prophecy\Argument;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Webimpress\HttpMiddlewareCompatibility\HandlerInterface as DelegateInterface;
use Webimpress\HttpMiddlewareCompatibility\MiddlewareInterface;
use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequest;
use Zend\Diactoros\Stream;
Expand Down

0 comments on commit 679e248

Please sign in to comment.