public function getProgressBar($iterations)
    {

        $bar = $this->output->createProgressBar($iterations);

        $bar->setFormat(' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s% %memory:6s%');

        return $bar;
    }
public function getProgressBar($iterations)
    {

        $bar = $this->output->createProgressBar($iterations);

        $bar->setFormat(' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s% %memory:6s%');

        return $bar;
    }
public function getProgressBar ( $ iterations ) { $ bar = $ this -> output -> createProgressBar ( $ iterations ) ; $ bar -> setFormat ( ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s% %memory:6s%' ) ; return $ bar ; }
Get a new progress bar to display based on the
amount of iterations we expect to use.

@param $iterations

@return \Symfony\Component\Console\Helper\ProgressBar
Get a new progress bar to display based on the amount of iterations we expect to use .