From 8493ebc7960b191af7e4fa840ea630c2a3333a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 19:59:14 +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 --- Annotation/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 060f0a3a..cfefeb56 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -201,7 +201,7 @@ class Loader extends BaseObject */ private function explodeFileName(DirectoryIterator $path, string $namespace): string { - $replace = str_replace(APP_PATH . '/', '', $path->getRealPath()); + $replace = str_replace(APP_PATH . 'app', '', $path->getRealPath()); $replace = str_replace('.php', '', $replace); $replace = str_replace(DIRECTORY_SEPARATOR, '\\', $replace);