改名
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user