Skip to content

Commit a3de3a0

Browse files
committed
[FrameworkBundle] made code more generic
1 parent 6040c30 commit a3de3a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Console;
1313

14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
14+
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1515
use Symfony\Component\Console\Application as BaseApplication;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Input\InputOption;
@@ -78,7 +78,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
7878
$container = $this->kernel->getContainer();
7979

8080
foreach ($this->all() as $command) {
81-
if ($command instanceof ContainerAwareCommand) {
81+
if ($command instanceof ContainerAwareInterface) {
8282
$command->setContainer($container);
8383
}
8484
}

0 commit comments

Comments
 (0)