Fix ProgressBar for Symfony 2.5

This commit is contained in:
Tim Nagel 2015-02-06 22:07:13 +11:00
parent 7bc88494a1
commit 72589f8341

View file

@ -164,6 +164,7 @@ class PopulateCommand extends ContainerAwareCommand
return function ($increment, $totalObjects) use (&$progress, $output, $index, $type) {
if (null === $progress) {
$progress = new ProgressBar($output, $totalObjects);
$progress->start();
}
$progress->setMessage(sprintf('<info>Populating</info> <comment>%s/%s</comment>', $index, $type));