Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4bc00df

Browse filesBrowse files
committed
Fixed documentation for ProgressBar
This place is using the old ProgressHelper API and can be confusing when migrating.
1 parent 1938c2f commit 4bc00df
Copy full SHA for 4bc00df

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎components/console/helpers/progressbar.rst

Copy file name to clipboardExpand all lines: components/console/helpers/progressbar.rst
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,11 @@ to display it can be customized::
265265
For performance reasons, be careful if you set the total number of steps
266266
to a high number. For example, if you're iterating over a large number of
267267
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`,
269269
so it updates on only some iterations::
270270

271-
$progress->start($output, 50000);
271+
$progress = new ProgressBar($output, 50000);
272+
$progress->start();
272273

273274
// update every 100 iterations
274275
$progress->setRedrawFrequency(100);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.