[FrameworkBundle] fixed init:bundle
This commit is contained in:
parent
a8e0a22011
commit
4e0ecfdf81
@ -51,6 +51,9 @@ class InitBundleCommand extends Command
|
||||
throw new \InvalidArgumentException('The namespace must end with Bundle.');
|
||||
}
|
||||
|
||||
$pos = strrpos($namespace, '\\');
|
||||
$bundle = substr($namespace, $pos ? $pos + 1 : 0);
|
||||
|
||||
$dir = $input->getArgument('dir');
|
||||
$output->writeln(sprintf('Initializing bundle "<info>%s</info>" in "<info>%s</info>"', $bundle, $dir));
|
||||
|
||||
|
Reference in New Issue
Block a user