Pre-load ArrayInput to avoid Exception if it gets moved/replaced during upgrade

This commit is contained in:
Andy Miller
2015-06-16 20:51:38 -06:00
parent e71cd5a7ad
commit 5656bb3caf

View File

@@ -6,6 +6,7 @@ use Grav\Common\GPM\Installer;
use Grav\Common\GPM\Response;
use Grav\Common\GPM\Upgrader;
use Grav\Console\ConsoleTrait;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
@@ -95,6 +96,9 @@ class SelfupgradeCommand extends Command
exit;
}
// not used but pre-loaded just in case!
new ArrayInput([]);
$questionHelper = $this->getHelper('question');
$skipPrompt = $this->input->getOption('all-yes');