-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix invalid ProgressBar message examples #7251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This fixes #6544
placeholder, but if you need more than one, you have just to define your own:: | ||
|
||
$progressBar = new ProgressBar($output, 100); | ||
$progressBar->setFormatDefinition('custom', ' %current%/%max% -- %message% %filename%'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should describe which placeholders one can use here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? Something like
[...] but if you need more than one, you have just to define your own; in the example below, we added the
message
andfilename
placeholders:
is enough?
I've reworded some contents and added more examples. Ready for a new review. Thanks! |
LGTM! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Status: Reviewed
Thank you @Jean85. |
…guiluz) This PR was merged into the 2.7 branch. Discussion ---------- Fix invalid ProgressBar message examples This fixes #6544. I've removed the confusing bits at the top, where the message placeholder is mentioned, and changed the last part, making the example more meaningful. Commits ------- da7fd2d Reworded some explanations and expanded examples 89a2843 Fix explanation of custom placeholder 771f952 Fix invalid ProgressBar message examples
This fixes #6544.
I've removed the confusing bits at the top, where the message placeholder is mentioned, and changed the last part, making the example more meaningful.