8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1938c2f commit 4bc00dfCopy full SHA for 4bc00df
components/console/helpers/progressbar.rst
@@ -265,10 +265,11 @@ to display it can be customized::
265
For performance reasons, be careful if you set the total number of steps
266
to a high number. For example, if you're iterating over a large number of
267
items, consider setting the redraw frequency to a higher value by calling
268
- :method:`Symfony\\Component\\Console\\Helper\\ProgressHelper::setRedrawFrequency`,
+ :method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`,
269
so it updates on only some iterations::
270
271
- $progress->start($output, 50000);
+ $progress = new ProgressBar($output, 50000);
272
+ $progress->start();
273
274
// update every 100 iterations
275
$progress->setRedrawFrequency(100);
0 commit comments