@@ -12,8 +12,8 @@ helper set, which you can get by calling
12
12
$dialog = $this->getHelperSet()->get('dialog');
13
13
14
14
All the methods inside the Dialog Helper have an
15
- :class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface ` as first the
16
- argument, the question as the second argument and the default value as last
15
+ :class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface ` as the first
16
+ argument, the question as the second argument and the default value as the last
17
17
argument.
18
18
19
19
Asking the User for confirmation
@@ -52,8 +52,9 @@ if you want to know a bundle name, you can add this to your command::
52
52
);
53
53
54
54
The user will be asked "Please enter the name of the bundle". They can type
55
- some name which will be returned by the ``ask `` method. If they leave it empty,
56
- the default value (``AcmeDemoBundle `` here) is returned.
55
+ some name which will be returned by the
56
+ :method: `Symfony\\ Component\\ Console\\ Helper\\ DialogHelper::ask ` method.
57
+ If they leave it empty, the default value (``AcmeDemoBundle `` here) is returned.
57
58
58
59
Autocompletion
59
60
~~~~~~~~~~~~~~
@@ -222,9 +223,12 @@ this set the seventh argument to ``true``::
222
223
return $colors[$c];
223
224
}, $selected);
224
225
225
- $output->writeln('You have just selected: ' . implode(', ', $selectedColors));
226
+ $output->writeln(
227
+ 'You have just selected: ' . implode(', ', $selectedColors)
228
+ );
226
229
227
- Now, when the user enters ``1,2 ``, the result will be: ``You have just selected: blue, yellow ``.
230
+ Now, when the user enters ``1,2 ``, the result will be:
231
+ ``You have just selected: blue, yellow ``.
228
232
229
233
Testing a Command which expects input
230
234
-------------------------------------
0 commit comments