This commit is contained in:
2023-04-16 16:57:27 +08:00
parent 552785c16b
commit 9c67fb556f
+5
View File
@@ -168,6 +168,11 @@ class Container implements ContainerInterface
$object = self::configure($reflect->newInstanceArgs($construct), $config);
$targetAttributes = $reflect->getAttributes();
foreach ($targetAttributes as $attribute) {
$attribute->newInstance()->dispatch($object);
}
$this->resolveProperties($reflect, $object);
if (method_exists($object, 'init') && $className !== 'Symfony\Component\Console\Application') {
call_user_func([$object, 'init']);