Magestead\Installers\Magento2Project::installMagento PHP Method

installMagento() protected method

protected installMagento ( array $config, array $options, $projectPath, Symfony\Component\Console\Output\OutputInterface $output )
$config array
$options array
$projectPath
$output Symfony\Component\Console\Output\OutputInterface
    protected function installMagento(array $config, array $options, $projectPath, OutputInterface $output)
    {
        $this->setPermissions($projectPath, $output);
        $this->installSampleData($options, $projectPath, $output);
        $output->writeln('<info>Installing Magento 2 Software</info>');
        $locale = $config['magestead']['apps']['mba_12345']['locale'];
        $db_name = $config['magestead']['apps']['mba_12345']['db_name'];
        $base_url = $config['magestead']['apps']['mba_12345']['base_url'];
        $default_currency = $config['magestead']['apps']['mba_12345']['default_currency'];
        $install = 'vagrant ssh -c \'cd /var/www/public; bin/magento setup:install --base-url=http://' . $base_url . '/ \\
--db-host=localhost \\
--db-name=' . $db_name . ' \\
--db-user=magestead \\
--db-password=vagrant \\
--admin-firstname=RichDynamix \\
--admin-lastname=Magestead \\
[email protected] \\
--admin-user=admin \\
--admin-password=password123 \\
--language=' . $locale . ' \\
--currency=' . $default_currency . ' \\
--timezone=Europe/London \\
--use-rewrites=1 \\
--backend-frontname=admin \\
--session-save=db \'';
        new ProcessCommand($install, $projectPath, $output);
    }