protected function ask(InputInterface $input, OutputInterface $output, Question $question, array $vars = []) {
    $key = mt_rand();
    $answers = $this->getHelper('dcg_input_handler')->collectVars($input, $output, [$key => $question], $vars);
    return $answers[$key];
  }
protected function ask(InputInterface $input, OutputInterface $output, Question $question, array $vars = []) {
    $key = mt_rand();
    $answers = $this->getHelper('dcg_input_handler')->collectVars($input, $output, [$key => $question], $vars);
    return $answers[$key];
  }
protected function ask ( InputInterface $ input , OutputInterface $ output , Question $ question , array $ vars = [ ] ) { $ key = mt_rand ( ) ; $ answers = $ this -> getHelper ( 'dcg_input_handler' ) -> collectVars ( $ input , $ output , [ $ key => $ question ] , $ vars ) ; return $ answers [ $ key ] ; }
Asks the user a single question and returns the answer.

@param \Symfony\Component\Console\Input\InputInterface $input
Input instance.
@param \Symfony\Component\Console\Output\OutputInterface $output
Output instance.
@param \Symfony\Component\Console\Question\Question $question
A question to ask.
@param array $vars
Array of predefined template variables.

@return string
The answer.

@see \DrupalCodeGenerator\InputHandler::collectVars()
Asks the user a single question and returns the answer .