From 5824d2a7d308b28766f304c07ee27fc1d2a328b3 Mon Sep 17 00:00:00 2001 From: ornicar Date: Thu, 23 Jun 2011 19:19:49 -0700 Subject: [PATCH] Synchronize command with upstream --- Command/FilesystemKeysCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Command/FilesystemKeysCommand.php b/Command/FilesystemKeysCommand.php index c383509..5cb099a 100644 --- a/Command/FilesystemKeysCommand.php +++ b/Command/FilesystemKeysCommand.php @@ -2,7 +2,7 @@ namespace Knplabs\Bundle\GaufretteBundle\Command; -use Symfony\Component\Console\Command\Command; +use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; @@ -13,7 +13,7 @@ use Gaufrette\Glob; * * @author Antoine Hérault */ -class FilesystemKeysCommand extends Command +class FilesystemKeysCommand extends ContainerAwareCommand { /** * {@inheritDoc} @@ -44,7 +44,7 @@ EOT { $filesystem = $input->getArgument('filesystem'); $glob = $input->getArgument('glob'); - $container = $this->getApplication()->getKernel()->getContainer(); + $container = $this->getContainer(); $serviceId = sprintf('gaufrette.%s_filesystem', $filesystem); if (!$container->has($serviceId)) {