Skip to content

Commit

Permalink
Fix method for adding placholders in progressBar
Browse files Browse the repository at this point in the history
The method is called setPlaceholderFormatterDefinition and not setPlaceholderFormatter
  • Loading branch information
danez committed Sep 6, 2014
1 parent 4a7f973 commit fb0e79c
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 @@ -289,7 +289,7 @@ display that are not available in the list of built-in placeholders, you can
create your own. Let's see how you can create a ``remaining_steps`` placeholder
that displays the number of remaining steps::

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

0 comments on commit fb0e79c

Please sign in to comment.