N98\Magento\Command\Installer\InstallCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | null | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->commandConfig = $this->getCommandConfig();
        $this->writeSection($output, 'Magento Installation');
        $this->precheckPhp();
        if (!$input->getOption('noDownload')) {
            $this->selectMagentoVersion($input, $output);
        }
        $this->chooseInstallationFolder($input, $output);
        if (!$input->getOption('noDownload')) {
            $result = $this->downloadMagento($input, $output);
            if ($result === false) {
                return 1;
            }
        }
        if ($input->getOption('only-download')) {
            return 0;
        }
        $this->createDatabase($input, $output);
        if (!$input->getOption('noDownload')) {
            $this->installSampleData($input, $output);
        }
        $this->removeEmptyFolders();
        $this->setDirectoryPermissions($output);
        $this->installMagento($input, $output, $this->config['installationFolder']);
    }