This commit is contained in:
2021-03-23 17:11:07 +08:00
parent 64e179fb25
commit ac68e071a5
3 changed files with 6 additions and 6 deletions
+6 -1
View File
@@ -185,7 +185,12 @@ 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->getName()]);
} else {
$_property[] = $attribute->newInstance();
}
}
$_array['property'][$method->getName()] = $_property;
}