8000 Fix explanation of custom placeholder · symfony/symfony-docs@89a2843 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89a2843

Browse files
authored
Fix explanation of custom placeholder
1 parent 771f952 commit 89a2843

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/console/helpers/progressbar.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,11 @@ Custom Messages
299299
~~~~~~~~~~~~~~~
300300

301301
If you want to show some fixed text or generic message, you can define custom
302-
placeholders to be displayed with the progress bar, after defining them in a
303-
custom format.
302+
placeholders in a custom format to be displayed with the progress bar, and use
303+
them afterwards.
304304

305305
By default, the ``setMessage()`` method implies ``message`` as the name of the
306-
placeholder, but if you need more than one, you have just to just define your
307-
own::
306+
placeholder, but if you need more than one, you have just to define your own::
308307

309308
$progressBar = new ProgressBar($output, 100);
310309
$progressBar->setFormatDefinition('custom', ' %current%/%max% -- %message% %filename%');

0 commit comments

Comments
 (0)
0