Skip to content

Commit 9d85b69

Browse files
committed
Tweaks
1 parent f02c2ab commit 9d85b69

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

components/console/helpers/progressindicator.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ The progress indicator will now look like this:
9999
⢸ Processing...
100100
✔ Finished
101101
102-
Once the progress indicator is finished, it uses the finishedIndicator value (which defaults to ✔). You can replace it with your own::
102+
Once the progress finishes, it displays a special finished indicator (which defaults
103+
to ✔). You can replace it with your own::
103104

104-
$progressIndicator = new ProgressIndicator($output, 'verbose', 100, null, '🎉');
105+
$progressIndicator = new ProgressIndicator($output, finishedIndicatorValue: '🎉');
105106
106107
try {
107108
/* do something */
@@ -110,6 +111,15 @@ Once the progress indicator is finished, it uses the finishedIndicator value (wh
110111
$progressIndicator->finish('Failed', '🚨');
111112
}
112113

114+
The progress indicator will now look like this:
115+
116+
.. code-block:: text
117+
118+
\ Processing...
119+
| Processing...
120+
/ Processing...
121+
- Processing...
122+
🎉 Finished
113123
114124
.. versionadded:: 7.2
115125

0 commit comments

Comments
 (0)