public function ask($question, $default = null, array $autocomplete = null)
    {
        $question = (new Question($question, $default))
            ->setAutocompleterValues($autocomplete);

        return $this->getQuestionHelper()->ask($this->getInput(), $this->output, $question);
    }
public function ask($question, $default = null, array $autocomplete = null)
    {
        $question = (new Question($question, $default))
            ->setAutocompleterValues($autocomplete);

        return $this->getQuestionHelper()->ask($this->getInput(), $this->output, $question);
    }
public function ask ( $ question , $ default = null , array $ autocomplete = null ) { $ question = ( new Question ( $ question , $ default ) ) -> setAutocompleterValues ( $ autocomplete ) ; return $ this -> getQuestionHelper ( ) -> ask ( $ this -> getInput ( ) , $ this -> output , $ question ) ; }
Asks a question to the user

@param string|array $question The question to ask. If an array each array item is turned into one line of a multi-line question
@param string $default The default answer if none is given by the user
@param array $autocomplete List of values to autocomplete. This only works if "stty" is installed
@throws \Symfony\Component\Console\Exception\InvalidArgumentException
@throws \Symfony\Component\Console\Exception\LogicException
@throws \Symfony\Component\Console\Exception\RuntimeException
@return string The user answer
Asks a question to the user