8000 Fix invalid ProgressBar message examples by Jean85 · Pull Request #7251 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 3 commits into from
Jan 24, 2017
Merged

Fix invalid ProgressBar message examples #7251

merged 3 commits into from
Jan 24, 2017

Conversation

Jean85
Copy link
Contributor
@Jean85 Jean85 commented Dec 13, 2016

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.

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%');
Copy link
Member

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.

Copy link
Contributor Author

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 and filename placeholders:

is enough?

@javiereguiluz
Copy link
Member

I've reworded some contents and added more examples. Ready for a new review. Thanks!

@Jean85
Copy link
Contributor Author
Jean85 commented Jan 16, 2017

LGTM! 👍
What about the failing build on platform.sh?

Copy link
Member
@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Status: Reviewed

@xabbuh
Copy link
Member
xabbuh commented Jan 24, 2017

Thank you @Jean85.

@xabbuh xabbuh merged commit da7fd2d into symfony:2.7 Jan 24, 2017
xabbuh added a commit that referenced this pull request Jan 24, 2017
…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
@Jean85 Jean85 deleted the patch-3 branch January 24, 2017 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0