From 0b172ed5673d81a06740cd4edbcafcf634fb8be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 18 Sep 2021 10:52:46 +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 --- http-helper/Route/Router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/http-helper/Route/Router.php b/http-helper/Route/Router.php index b4ae65b1..e0528fc6 100644 --- a/http-helper/Route/Router.php +++ b/http-helper/Route/Router.php @@ -110,6 +110,7 @@ class Router extends HttpService implements RouterInterface if (is_string($handler)) { $handler = explode('@', $handler); + $handler[0] = $this->namespace . '\\' . $handler[0]; } HandlerManager::add($path, $method, new Handler($path, $handler));