This commit is contained in:
2021-03-29 16:21:01 +08:00
parent ce0ba186a7
commit c84e19c8e5
-6
View File
@@ -185,19 +185,13 @@ class Loader extends BaseObject
if (!class_exists($attribute->getName())) { if (!class_exists($attribute->getName())) {
continue; continue;
} }
$property = $attribute->newInstance();
if ($property instanceof Inject) {
$property->execute([$_array['handler'], $method]);
} else {
$_property[] = $attribute->newInstance(); $_property[] = $attribute->newInstance();
} }
}
$_array['property'][$method->getName()] = $_property; $_array['property'][$method->getName()] = $_property;
} }
$this->_fileMap[$replace->getFileName()] = $replace->getName(); $this->_fileMap[$replace->getFileName()] = $replace->getName();
$this->_classes[$replace->getName()] = $_array; $this->_classes[$replace->getName()] = $_array;
} catch (Throwable $throwable) { } catch (Throwable $throwable) {
$this->error($throwable->getMessage()); $this->error($throwable->getMessage());