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

Fix action caller next middleware handling #210

Merged
merged 1 commit into from
Feb 2, 2020
Merged
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
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;
}
}