callable = $callable; $this->args = array_slice(func_get_args(), 1); } public function handle(ServerRequestInterface $request): ResponseInterface { return call_user_func_array($this->callable, array_merge([$request], $this->args)); } }