Commit 4bc00df 1 parent 1938c2f commit 4bc00df Copy full SHA for 4bc00df
File tree 1 file changed +3
-2
lines changed
components/console/helpers
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -265,10 +265,11 @@ to display it can be customized::
265
265
For performance reasons, be careful if you set the total number of steps
266
266
to a high number. For example, if you're iterating over a large number of
267
267
items, consider setting the redraw frequency to a higher value by calling
268
- :method: `Symfony\\ Component\\ Console\\ Helper\\ ProgressHelper ::setRedrawFrequency `,
268
+ :method: `Symfony\\ Component\\ Console\\ Helper\\ ProgressBar ::setRedrawFrequency `,
269
269
so it updates on only some iterations::
270
270
271
- $progress->start($output, 50000);
271
+ $progress = new ProgressBar($output, 50000);
272
+ $progress->start();
272
273
273
274
// update every 100 iterations
274
275
$progress->setRedrawFrequency(100);
You can’t perform that action at this time.
0 commit comments