From a47478f397329b67f0ac7f2f65eec1267334e7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 02:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Router.php b/src/Router.php index 0c1d097..002aeda 100644 --- a/src/Router.php +++ b/src/Router.php @@ -174,7 +174,8 @@ class Router */ public function scan_build_route(): void { - scan_directory(APP_PATH, 'App'); + $scanner = Kiri::getDi()->get(Kiri\Scanner::class); + $scanner->parse('App'); $this->read_dir_file(APP_PATH . 'routes'); }