diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 3ecc8545..5e8cb8d8 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -211,7 +211,7 @@ class Loader extends BaseObject public function loadByDirectory(string $path, ?string $outPath = null) { try { - $this->each($path, $outPath); + $this->each($path); } catch (Throwable $exception) { $this->addError($exception, 'throwable'); } @@ -244,9 +244,6 @@ class Loader extends BaseObject { $filePath = str_replace(directory('app'), '', $filePath); - - var_dump($filePath); - $directory = $this->splitDirectory($filePath); array_pop($directory); @@ -255,10 +252,6 @@ class Loader extends BaseObject $tree = $this->getTree($tree, $value); } - if ($filePath == '/Websocket/Connect.php') { - var_dump($tree); - } - if ($tree instanceof FileTree) { $tree->addFile($className); } @@ -352,6 +345,7 @@ class Loader extends BaseObject if (empty($classes)) { return; } + var_dump($classes); foreach ($classes as $className) { $annotations = $this->_classes[$className] ?? null; if ($annotations === null) {