Changes

Syntax

use Symfony\Component\Console\Helper\ProgressBar;
 
$progressBar = new ProgressBar($output);
$progressBar->start();
 
// ... do some work
$progressBar->advance();
 
// needed to ensure that the bar reaches 100%
$progressBar->finish();