From de68766f4b811bce2a066c83390bbef88a50b129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 17:57:29 +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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 450d1f03..f65bb1dc 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -242,8 +242,6 @@ class Loader extends BaseObject */ public function appendFileToDirectory(string $filePath, string $className) { - $filePath = str_replace(directory('app'), '', $filePath); - $directory = $this->splitDirectory($filePath); array_pop($directory); @@ -265,8 +263,6 @@ class Loader extends BaseObject private function each(string $filePath): static { $tree = null; - $filePath = str_replace(directory('app'), '', $filePath); - $directory = $this->splitDirectory($filePath); foreach ($directory as $key => $value) {