From 603f88c85ca13e3dde46af1f40c4dd255ad9224a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 17:53:47 +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 5e8cb8d8..5d43a1a0 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -265,7 +265,7 @@ class Loader extends BaseObject private function each(string $filePath): static { $tree = null; - $filePath = str_replace(directory('app'), '', $filePath); + $filePath = str_replace(APP_PATH, '', $filePath); $directory = $this->splitDirectory($filePath);