This commit is contained in:
as2252258@163.com
2021-04-03 01:24:58 +08:00
parent 50137031f2
commit 405e6f46a2
+1 -5
View File
@@ -185,11 +185,7 @@ class Loader extends BaseObject
if (!class_exists($attribute->getName())) { if (!class_exists($attribute->getName())) {
continue; continue;
} }
$property = $attribute->newInstance(); $_property[] = $attribute->newInstance();
if ($property instanceof Inject) {
$property->execute([$_array['handler'], $method]);
}
$_property[] = $property;
} }
$_array['property'][$method->getName()] = $_property; $_array['property'][$method->getName()] = $_property;
} }