From dd861919285dcc62fab07b36b32c63b518f4a3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 12:33:07 +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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index e706b6e8..51ad7021 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -142,14 +142,14 @@ class Loader extends BaseObject $this->_directory[rtrim($path->getRealPath(), '/')] = []; } else { - $this->readFile($path, $namespace); - $array = explode('/', $path->getRealPath()); array_pop($array); $directory = implode('/', $array); $this->_directory[$directory][] = $path->getRealPath(); + + $this->readFile($path, $namespace); } } } @@ -227,12 +227,10 @@ class Loader extends BaseObject { try { $path = '/' . trim($path, '/'); - var_dump($path, $this->_directory); if (!isset($this->_directory[$path])) { return; } foreach ($this->_directory[$path] as $key => $_path) { - var_dump($key . '=>' . $path); if (!str_contains($key, $path)) { continue; }