From 0ccad9bbff488fe393254d4971dfa17b04a31a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 5 Aug 2021 14:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 5ba6d68d..1a9713f6 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -124,7 +124,8 @@ class Node extends HttpService $callback = $this->injectClosureMiddleware($manager, $handler); } $handlerProviders = di(HandlerProviders::class); - return $handlerProviders->add($this->sourcePath, $this->method, $callback); + $handlerProviders->add($this->sourcePath, $this->method, $callback); + return $this; }