Additional change for 2.5 ProgressBar support
getProgress() is not available and getStep() throws a deprecation warning.
This commit is contained in:
parent
72589f8341
commit
797d066286
|
@ -170,7 +170,7 @@ class PopulateCommand extends ContainerAwareCommand
|
||||||
$progress->setMessage(sprintf('<info>Populating</info> <comment>%s/%s</comment>', $index, $type));
|
$progress->setMessage(sprintf('<info>Populating</info> <comment>%s/%s</comment>', $index, $type));
|
||||||
$progress->advance($increment);
|
$progress->advance($increment);
|
||||||
|
|
||||||
if ($progress->getProgress() >= $progress->getMaxSteps()) {
|
if ($progress->getProgressPercent() >= 1.0) {
|
||||||
$progress->finish();
|
$progress->finish();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue