diff --git a/Container.php b/Container.php index f49c99a..f60cb1e 100644 --- a/Container.php +++ b/Container.php @@ -158,7 +158,7 @@ class Container implements ContainerInterface $object = self::configure($reflect->newInstanceArgs($construct), $config); $this->resolveProperties($reflect, $object); - if (method_exists($object, 'init')) { + if (method_exists($object, 'init') && $className !== 'Symfony\Component\Console\Application') { call_user_func([$object, 'init']); } return $object;