Skip to content

Commit

Permalink
[FrameworkBundle] made code more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 9, 2013
1 parent 2b2c116 commit 7eaaec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Bundle/FrameworkBundle/Console/Application.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 7eaaec1

Please sign in to comment.