middleware = $middleware; $this->nextInvoker = $nextInvoker; } /** * Invoke middleware * @return \Core\Foundation\Response * {@inheritDoc} * @see \Core\Foundation\Invoker::invoke() */ public function invoke(): Response { return $this->middleware->process($this->nextInvoker); } }