Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb0e79c

Browse files
committed
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)