Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb0e79c

Browse filesBrowse files
committed
Fix method for adding placholders in progressBar
The method is called setPlaceholderFormatterDefinition and not setPlaceholderFormatter
1 parent 4a7f973 commit fb0e79c
Copy full SHA for fb0e79c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎components/console/helpers/progressbar.rst

Copy file name to clipboardExpand all lines: components/console/helpers/progressbar.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.