public function __construct(OutputInterface $output, ProgressBar $progressBar) { $this->output = $output; $this->progressBar = $progressBar ?: new ProgressBar($output); $this->progressBar->setOverwrite(false); $this->progressFormat = "<fg=yellow>Running task %current%/%max%:</fg=yellow> %message%"; }