This commit is contained in:
2023-04-16 02:20:20 +08:00
parent dc08bcd81f
commit 93f10ade37
+1 -1
View File
@@ -158,7 +158,7 @@ class Container implements ContainerInterface
$object = self::configure($reflect->newInstanceArgs($construct), $config); $object = self::configure($reflect->newInstanceArgs($construct), $config);
$this->resolveProperties($reflect, $object); $this->resolveProperties($reflect, $object);
if (method_exists($object, 'init')) { if (method_exists($object, 'init') && $className !== 'Symfony\Component\Console\Application') {
call_user_func([$object, 'init']); call_user_func([$object, 'init']);
} }
return $object; return $object;