Skip to content

Commit 8d8b04e

Browse files
committed
Fixes populate command error
1 parent 447d29a commit 8d8b04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/PopulateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
7474
$this->resetter = $this->getContainer()->get('fos_elastica.resetter');
7575
$this->progressClosureBuilder = new ProgressClosureBuilder();
7676

77-
if (!$input->getOption('no-overwrite-format')) {
77+
if (!$input->getOption('no-overwrite-format') && class_exists('Symfony\\Component\\Console\\Helper\\ProgressBar')) {
7878
ProgressBar::setFormatDefinition('normal', " %current%/%max% [%bar%] %percent:3s%%\n%message%");
7979
ProgressBar::setFormatDefinition('verbose', " %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%\n%message%");
8080
ProgressBar::setFormatDefinition('very_verbose', " %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s%\n%message%");

0 commit comments

Comments
 (0)