@@ -9,7 +9,7 @@ functions to ask the user for more information. It is included in the default
99helper set, which you can get by calling
1010:method: `Symfony\\ Component\\ Console\\ Command\\ Command::getHelperSet `::
1111
12- $dialog = $this->getHelperSet()->get ('dialog');
12+ $dialog = $this->getHelper ('dialog');
1313
1414All the methods inside the Dialog Helper have an
1515:class: `Symfony\\ Component\\ Console\\ Output\\ OutputInterface ` as the first
@@ -65,7 +65,7 @@ Autocompletion
6565You can also specify an array of potential answers for a given question. These
6666will be autocompleted as the user types::
6767
68- $dialog = $this->getHelperSet()->get ('dialog');
68+ $dialog = $this->getHelper ('dialog');
6969 $bundleNames = array('AcmeDemoBundle', 'AcmeBlogBundle', 'AcmeStoreBundle');
7070 $name = $dialog->ask(
7171 $output,
@@ -83,7 +83,7 @@ Hiding the User's Response
8383You can also ask a question and hide the response. This is particularly
8484convenient for passwords::
8585
86- $dialog = $this->getHelperSet()->get ('dialog');
86+ $dialog = $this->getHelper ('dialog');
8787 $password = $dialog->askHiddenResponse(
8888 $output,
8989 'What is the database password?',
@@ -154,7 +154,7 @@ Validating a Hidden Response
154154
155155You can also ask and validate a hidden response::
156156
157- $dialog = $this->getHelperSet()->get ('dialog');
157+ $dialog = $this->getHelper ('dialog');
158158
159159 $validator = function ($value) {
160160 if ('' === trim($value)) {
@@ -192,7 +192,7 @@ Instead, you can use the
192192method, which makes sure that the user can only enter a valid string
193193from a predefined list::
194194
195- $dialog = $this->getHelperSet()->get ('dialog');
195+ $dialog = $this->getHelper ('dialog');
196196 $colors = array('red', 'blue', 'yellow');
197197
198198 $color = $dialog->select(
0 commit comments