[FrameworkBundle] made code more generic

This commit is contained in:
Fabien Potencier 2013-08-09 14:53:54 +02:00
parent 2b2c1167ef
commit 7eaaec1468

View File

@ -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 @@ class Application extends BaseApplication
$container = $this->kernel->getContainer();
foreach ($this->all() as $command) {
if ($command instanceof ContainerAwareCommand) {
if ($command instanceof ContainerAwareInterface) {
$command->setContainer($container);
}
}