/** * {@inheritdoc} */ public function start(Project $project) { try { $this->doctor->examine(new NullOutput(), true); } catch (CommandFailedException $e) { if (!$this->userInteraction instanceof ConsoleUserInteraction) { throw $e; } $answer = $this->userInteraction->ask(new Question('It looks like there\'s something wrong with your installation. Would you like to run the `doctor` command ? [Yn]', 'y')); if ('y' == strtolower($answer)) { $this->doctor->examine($this->userInteraction->getOutput(), false); } } return $this->projectManager->start($project); }
/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->doctor->examine($output, $input->getOption('dry-run')); }