9 use Symfony\Component\Console\Input\InputInterface;
10 use Symfony\Component\Console\Output\OutputInterface;
11 use Symfony\Component\Console\Question\ConfirmationQuestion;
20 private $installerFactory;
27 $this->installerFactory = $installerFactory;
28 parent::__construct();
36 $this->setName(
'setup:uninstall')
37 ->setDescription(
'Uninstalls the Magento application');
46 $helper = $this->getHelper(
'question');
47 $question =
new ConfirmationQuestion(
'Are you sure you want to uninstall Magento?[y/N]',
false);
49 if (
$helper->ask($input,
$output, $question) || !$input->isInteractive()) {
53 return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
__construct(InstallerFactory $installerFactory)
execute(InputInterface $input, OutputInterface $output)