From fd9d88b97e7878bf2e6d0f55db7521655a2811a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 15 Oct 2020 11:58:17 +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/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 1bc9edb2..676620f4 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -287,7 +287,7 @@ class Router extends Application implements RouterInterface $name = array_column($this->groupTacks, 'middleware'); if ($this->middleware instanceof \Closure) { - array_unshift($name, $this->middleware); + $node->addMiddleware($this->middleware); } $node->bindMiddleware($name);