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(); } } }