Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fb0e79c

Browse files
committedSep 6, 2014
Fix method for adding placholders in progressBar
The method is called setPlaceholderFormatterDefinition and not setPlaceholderFormatter
1 parent 4a7f973 commit fb0e79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎components/console/helpers/progressbar.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ display that are not available in the list of built-in placeholders, you can
289289
create your own. Let's see how you can create a ``remaining_steps`` placeholder
290290
that displays the number of remaining steps::
291291

292-
ProgressBar::setPlaceholderFormatter(
292+
ProgressBar::setPlaceholderFormatterDefinition(
293293
'%remaining_steps%',
294294
function (ProgressBar $bar, OutputInterface $output) {
295295
return $bar->getMaxSteps() - $bar->getStep();

0 commit comments

Comments
 (0)
Please sign in to comment.