We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447d29a commit 8d8b04eCopy full SHA for 8d8b04e
Command/PopulateCommand.php
@@ -74,7 +74,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
74
$this->resetter = $this->getContainer()->get('fos_elastica.resetter');
75
$this->progressClosureBuilder = new ProgressClosureBuilder();
76
77
- if (!$input->getOption('no-overwrite-format')) {
+ if (!$input->getOption('no-overwrite-format') && class_exists('Symfony\\Component\\Console\\Helper\\ProgressBar')) {
78
ProgressBar::setFormatDefinition('normal', " %current%/%max% [%bar%] %percent:3s%%\n%message%");
79
ProgressBar::setFormatDefinition('verbose', " %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%\n%message%");
80
ProgressBar::setFormatDefinition('very_verbose', " %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s%\n%message%");
0 commit comments