@@ -12,7 +12,7 @@ functions to ask the user for more information. It is included in the default
1212helper set, which you can get by calling
1313:method: `Symfony\\ Component\\ Console\\ Command\\ Command::getHelperSet `::
1414
15- $helper = $this->getHelperSet()->get ('question');
15+ $helper = $this->getHelper ('question');
1616
1717The Question Helper has a single method
1818:method: `Symfony\\ Component\\ Console\\ Command\\ Command::ask ` that needs an
@@ -30,7 +30,7 @@ the following to your command::
3030 use Symfony\Component\Console\Question\ConfirmationQuestion;
3131 // ...
3232
33- $helper = $this->getHelperSet()->get ('question');
33+ $helper = $this->getHelper ('question');
3434 $question = new ConfirmationQuestion('Continue with this action?', false);
3535
3636 if (!$helper->ask($input, $output, $question)) {
@@ -73,7 +73,7 @@ from a predefined list::
7373 use Symfony\Component\Console\Question\ChoiceQuestion;
7474 // ...
7575
76- $helper = $app->getHelperSet()->get ('question');
76+ $helper = $this->getHelper ('question');
7777 $question = new ChoiceQuestion(
7878 'Please select your favorite color (defaults to red)',
7979 array('red', 'blue', 'yellow'),
@@ -107,7 +107,7 @@ this use :method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setMult
107107 use Symfony\Component\Console\Question\ChoiceQuestion;
108108 // ...
109109
110- $helper = $app->getHelperSet()->get ('question');
110+ $helper = $this->getHelper ('question');
111111 $question = new ChoiceQuestion(
112112 'Please select your favorite color (defaults to red)',
113113 array('red', 'blue', 'yellow'),
@@ -206,7 +206,7 @@ You can also use a validator with a hidden question::
206206 use Symfony\Component\Console\Question\Question;
207207 // ...
208208
209- $helper = $this->getHelperSet()->get ('question');
209+ $helper = $this->getHelper ('question');
210210
211211 $question = new Question('Please enter your password');
212212 $question->setValidator(function ($value) {
0 commit comments