mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
416 B
416 B
id | title |
---|---|
b4fc3714-24f9-4eb6-9d46-3c42bdcd5be2 | Symfony Console Iterable Progress Bars |
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();