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);