This commit is contained in:
2021-03-29 17:37:30 +08:00
parent 9e54e20dae
commit ec101543c9
+5 -1
View File
@@ -185,7 +185,11 @@ class Loader extends BaseObject
if (!class_exists($attribute->getName())) {
continue;
}
$_property[] = $attribute->newInstance();
$property = $attribute->newInstance();
if ($property instanceof Inject) {
$property->execute([$_array['handler'], $method]);
}
$_property[] = $property;
}
$_array['property'][$method->getName()] = $_property;
}