Fixed bundle name handling in AbstractCommand

This commit is contained in:
Kévin Gomez 2013-11-14 11:02:34 +00:00
parent 27862d6fb1
commit efd0b77c65

View file

@ -97,11 +97,11 @@ abstract class AbstractCommand extends ContainerAwareCommand
$this->checkConfiguration();
if ($input->hasArgument('bundle') && !empty($input->getArgument('bundle'))) {
if ($input->hasArgument('bundle') && '@' === substr($input->getArgument('bundle'), 0, 1)) {
$this->bundle = $this
->getContainer()
->get('kernel')
->getBundle($input->getArgument('bundle'));
->getBundle(substr($input->getArgument('bundle'), 1));
}
}