From 7eaaec14684643074a701c7e7799fcad03996d96 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 9 Aug 2013 14:53:54 +0200 Subject: [PATCH] [FrameworkBundle] made code more generic --- src/Symfony/Bundle/FrameworkBundle/Console/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php index aac3928e5d8b..9d7e4ff1a999 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Console; -use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\Console\Application as BaseApplication; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; @@ -78,7 +78,7 @@ public function doRun(InputInterface $input, OutputInterface $output) $container = $this->kernel->getContainer(); foreach ($this->all() as $command) { - if ($command instanceof ContainerAwareCommand) { + if ($command instanceof ContainerAwareInterface) { $command->setContainer($container); } }