private function askToDownloadFromCartoDB(Input $input, Output $output, Helper $helper) { $question = new ConfirmationQuestion("\n<ask>Do you want to download the data form <high>CartoDB</high>? (yes/no): </ask>", false); return $helper->ask($input, $output, $question); }
/** * Get password and validate. * * @param Helper $helper * @param string $question * @param callable $validator * * @return string */ protected function askForPassword(Helper $helper, $question, callable $validator) { $question = new Question($question); $question->setValidator($validator); $question->setHidden(true); $question->setHiddenFallback(true); return $helper->ask($this->input, $this->output, $question); }