This commit is contained in:
2023-04-16 13:47:32 +08:00
parent 8890d03d2c
commit 728a2dd560
+1 -1
View File
@@ -160,7 +160,7 @@ class Container implements ContainerInterface
$object = self::configure($reflect->newInstanceArgs($construct), $config);
$this->resolveProperties($reflect, $object);
if ($constructorHandler === null && method_exists($object, 'init')) {
if (method_exists($object, 'init') && $className !== 'Symfony\Component\Console\Application') {
call_user_func([$object, 'init']);
}
return $object;