Skip to content

Commit

Permalink
The name of the placeholder must not be encapsulated in %
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Sep 6, 2014
1 parent fb0e79c commit f3ef9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ create your own. Let's see how you can create a ``remaining_steps`` placeholder
that displays the number of remaining steps::

ProgressBar::setPlaceholderFormatterDefinition(
'%remaining_steps%',
'remaining_steps',
function (ProgressBar $bar, OutputInterface $output) {
return $bar->getMaxSteps() - $bar->getStep();
}
Expand Down

0 comments on commit f3ef9dc

Please sign in to comment.