protected interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
protected function interact(InputInterface $input, OutputInterface $output)
{
parent::interact($input, $output);
// Fill up questions
if ($this->informationCollector->hasMissingInformation()) {
foreach ($this->informationCollector->getInteractiveQuestions() as $name => $question) {
$answer = $this->getOutput()->askQuestion($question, null, $this->input);
$this->informationCollector->setValueFor($name, $answer);
$this->getOutput()->writeEmptyLine();
}
}
}