Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ namespace Acme\Action;
use Acme\Domain\Authentication;
use Acme\Input\LoginInput;
use Equip\Contract\ActionInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

Expand All @@ -402,7 +401,7 @@ class LoginAction implements ActionInterface
$this->responder = $responder;
}

public function __invoke(RequestInterface $request, ResponseInterface $response)
public function __invoke(ServerRequestInterface $request, ResponseInterface $response)
{
$input = $this->input($request);
$errors = $this->auth->validate($input);
Expand Down
6 changes: 3 additions & 3 deletions src/Contract/ActionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Equip\Contract;

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;

interface ActionInterface
Expand All @@ -13,13 +13,13 @@ interface ActionInterface
* Parses request input and invokes domain logic. Formats domain output for
* the response.
*
* @param RequestInterface $request
* @param ServerRequestInterface $request
* @param ResponseInterface $response
*
* @return ResponseInterface
*/
public function __invoke(
RequestInterface $request,
ServerRequestInterface $request,
ResponseInterface $response
);
}