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; } }