diff --git a/Container.php b/Container.php index 33b4e92..8f620d5 100644 --- a/Container.php +++ b/Container.php @@ -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;