From ce92f7dc7ba4908b3725f9a004dd8f7884cfced1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 28 Oct 2021 15:39:35 +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 --- kiri-note/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-note/Loader.php b/kiri-note/Loader.php index 16f1308f..8f7caaa5 100644 --- a/kiri-note/Loader.php +++ b/kiri-note/Loader.php @@ -214,7 +214,7 @@ class Loader extends BaseObject */ private function explodeFileName(DirectoryIterator $path, string $namespace): string { - $replace = str_replace(APP_PATH . 'app', '', $path->getRealPath()); + $replace = str_replace(APP_PATH, '', $path->getRealPath()); $replace = str_replace('.php', '', $replace); $replace = str_replace(DIRECTORY_SEPARATOR, '\\', $replace);