From 9c95542f3124b998354cea535fc33bf32e8283e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Apr 2021 17:34:43 +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 | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 83846646..815a5a4a 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -263,25 +263,14 @@ class Loader extends BaseObject * @return $this * @throws Exception */ - private function each(string $filePath, ?string $output): static + private function each(string $filePath): static { $tree = null; $filePath = str_replace(directory('app'), '', $filePath); $directory = $this->splitDirectory($filePath); - if (!empty($output)) { - $output = DIRECTORY_SEPARATOR . trim($output, '/'); - } - $output = str_replace(directory('app'), '', $output); - - $out_path = ''; foreach ($directory as $key => $value) { - $out_path .= DIRECTORY_SEPARATOR . $value; - $this->error($filePath . '->' . $out_path); - if (str_contains($filePath, $output)) { - continue; - } $tree = $this->getTree($tree, $value); } if ($tree instanceof FileTree) {