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)
{
// Work around a bug in Console which means the default command's input
// is always considered to be interactive.
if ($this->getName() === 'welcome' && isset($GLOBALS['argv']) && array_intersect($GLOBALS['argv'], ['-n', '--no', '-y', '---yes'])) {
$input->setInteractive(false);
self::$interactive = false;
return;
}
$this->checkUpdates();
}