From db0c21a2a7e4e29979b4945a966205d76aeec324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 31 Aug 2020 17:21:45 +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-server/Route/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-server/Route/Router.php b/http-server/Route/Router.php index 48455899..9d921a63 100644 --- a/http-server/Route/Router.php +++ b/http-server/Route/Router.php @@ -23,7 +23,7 @@ class Router extends Application implements RouterInterface /** @var Node[] $nodes */ public $nodes = []; public $groupTacks = []; - public $dir = 'App\\Controllers'; + public $dir = 'App\\Http'; /** @var string[] */ public $methods = ['get', 'post', 'options', 'put', 'delete', 'receive']; @@ -34,7 +34,7 @@ class Router extends Application implements RouterInterface */ public function init() { - $this->dir = Config::get('controller.path', false, $this->dir); + $this->dir = Config::get('http.namespace', false, $this->dir); } /**