From 0433e173e65f931247b9a8d3d76557fc8b8c5f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 19:09:00 +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 fed5eb4e..5a9dbe85 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -133,7 +133,7 @@ class Loader extends BaseObject continue; } - $replace = str_replace(APP_PATH . '/', '', $path->getPathname()); + $replace = str_replace(APP_PATH . '/', '', $path->getRealPath()); $replace = str_replace('.php', '', $replace); $replace = str_replace(DIRECTORY_SEPARATOR, '\\', $replace);