Skip to content

Commit

Permalink
Merge pull request #11 from basz/psr/http-server-middleware
Browse files Browse the repository at this point in the history
cs
  • Loading branch information
prolic authored Jan 23, 2018
2 parents dcfc567 + b276e16 commit 607707b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/CommandMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
namespace Prooph\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Prooph\Common\Messaging\MessageFactory;
use Prooph\HttpMiddleware\Exception\RuntimeException;
use Prooph\HttpMiddleware\Response\ResponseStrategy;
use Prooph\ServiceBus\CommandBus;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

/**
* Command messages describe actions your model can handle.
Expand Down
4 changes: 2 additions & 2 deletions src/EventMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
namespace Prooph\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Prooph\Common\Messaging\MessageFactory;
use Prooph\HttpMiddleware\Exception\RuntimeException;
use Prooph\HttpMiddleware\Response\ResponseStrategy;
use Prooph\ServiceBus\EventBus;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

/**
* Event messages describe things that happened while your model handled a command.
Expand Down
4 changes: 2 additions & 2 deletions src/MessageMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
namespace Prooph\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Prooph\Common\Messaging\Message;
use Prooph\Common\Messaging\MessageDataAssertion;
use Prooph\Common\Messaging\MessageFactory;
Expand All @@ -25,6 +23,8 @@
use Prooph\ServiceBus\QueryBus;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Ramsey\Uuid\Uuid;

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

use Fig\Http\Message\RequestMethodInterface;
use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Prooph\Common\Messaging\MessageFactory;
use Prooph\HttpMiddleware\Exception\RuntimeException;
use Prooph\HttpMiddleware\Response\ResponseStrategy;
use Prooph\ServiceBus\QueryBus;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

/**
* Query messages describe available information that can be fetched from your (read) model.
Expand Down
2 changes: 1 addition & 1 deletion tests/CommandMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace ProophTest\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\TestCase;
use Prooph\Common\Messaging\Message;
use Prooph\Common\Messaging\MessageFactory;
Expand All @@ -25,6 +24,7 @@
use Prophecy\Argument;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

/**
* Test integrity of \Prooph\HttpMiddleware\CommandMiddleware
Expand Down
2 changes: 1 addition & 1 deletion tests/EventMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace ProophTest\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\TestCase;
use Prooph\Common\Messaging\Message;
use Prooph\Common\Messaging\MessageFactory;
Expand All @@ -25,6 +24,7 @@
use Prophecy\Argument;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

/**
* Test integrity of \Prooph\HttpMiddleware\EventMiddleware
Expand Down
2 changes: 1 addition & 1 deletion tests/MessageMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace ProophTest\HttpMiddleware;

use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\TestCase;
use Prooph\Common\Messaging\Message;
use Prooph\Common\Messaging\MessageFactory;
Expand All @@ -26,6 +25,7 @@
use Prophecy\Argument;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use React\Promise\Promise;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/QueryMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace ProophTest\HttpMiddleware;

use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\TestCase;
use Prooph\Common\Messaging\Message;
use Prooph\Common\Messaging\MessageFactory;
Expand All @@ -24,6 +23,7 @@
use Prophecy\Argument;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use React\Promise\Promise;

/**
Expand Down

0 comments on commit 607707b

Please sign in to comment.