From 6ee3a2ab07887e9c2dd1e2daca1588619acfc692 Mon Sep 17 00:00:00 2001 From: yiiliveext <37578608+yiiliveext@users.noreply.github.com> Date: Sun, 2 Feb 2020 15:38:11 +0200 Subject: [PATCH] Fix action caller next middleware handling (#210) --- src/Middleware/ActionCaller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Middleware/ActionCaller.php b/src/Middleware/ActionCaller.php index ee5b28487..655d7133c 100644 --- a/src/Middleware/ActionCaller.php +++ b/src/Middleware/ActionCaller.php @@ -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; } }