File tree 2 files changed +7
-6
lines changed
components/console/helpers
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
Dialog Helper
5
5
=============
6
6
7
- The Dialog Helper provides functions to ask the user for more information.
8
- It is included in the default helper set, which you can get
9
- by calling :method: `Symfony\\ Component\\ Console\\ Command\\ Command::getHelperSet `::
7
+ The :class: `Symfony\\ Component\\ Console\\ Helper\\ DialogHelper ` provides
8
+ functions to ask the user for more information. It is included in the default
9
+ helper set, which you can get by calling
10
+ :method: `Symfony\\ Component\\ Console\\ Command\\ Command::getHelperSet `::
10
11
11
12
$dialog = $this->getHelperSet()->get('dialog');
12
13
@@ -19,7 +20,7 @@ Asking the User for confirmation
19
20
--------------------------------
20
21
21
22
Suppose you want to confirm an action before actually executing it. Add
22
- the following to you command::
23
+ the following to your command::
23
24
24
25
// ...
25
26
if (!$dialog->askConfirmation(
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ The Formatter helpers provides functions to format the output with colors.
8
8
You can do more advanced things with this helper than you can in
9
9
:ref: `components-console-coloring `.
10
10
11
- The `` formatter `` helper is included in the default helper set, which you can
12
- get by calling
11
+ The :class: ` Symfony \\ Component \\ Console \\ Helper \\ FormatterHelper ` is included
12
+ in the default helper set, which you can get by calling
13
13
:method: `Symfony\\ Component\\ Console\\ Command\\ Command::getHelperSet `::
14
14
15
15
$formatter = $this->getHelperSet()->get('formatter');
You can’t perform that action at this time.
0 commit comments