Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd3346d8

Browse files
James Halsallxabbuh
James Halsall
authored andcommitted
Update ProgressBar docs with regress information
1 parentf78d06b commitd3346d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎components/console/helpers/progressbar.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ number of units, and advance the progress as the command executes::
3535
// ensure that the progress bar is at 100%
3636
$progress->finish();
3737

38+
..tip::
39+
40+
You can also regress the progress bar (i.e. step backwards) by calling
41+
``$progress->advance()`` with a negative value. For example, if you call
42+
``$progress->advance(-2)`` then it will regress the progress bar 2 steps.
43+
3844
Instead of advancing the bar by a number of steps (with the
3945
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::advance` method),
4046
you can also set the current progress by calling the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp