Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix action caller next middleware handling (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiliveext committed Feb 2, 2020
1 parent a2e9ffa commit 6ee3a2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Middleware/ActionCaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function __construct(string $class, string $method, ContainerInterface $c
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$controller = $this->container->get($this->class);
return (new Injector($this->container))->invoke([$controller, $this->method], [$request, $handler]);
$response = (new Injector($this->container))->invoke([$controller, $this->method], [$request, $handler]);
$handler->handle($request);
return $response;
}
}

0 comments on commit 6ee3a2a

Please sign in to comment.