public static function install() { if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { return; } $input = new ArgvInput(); if ($input->hasParameterOption(array('--no-interaction', '-n'))) { return; } $cwd = getcwd(); $www = dirname($cwd); $site = basename($cwd); $arguments = array('site:install', 'site' => $site, '--www' => $www, '--interactive' => true, '--mysql_db_prefix' => ''); self::logo(); $output = new ConsoleOutput(); $output->writeln("<info>Welcome to the Joomla Platform installer!</info>"); $output->writeln("Fill in the following details to configure your new application."); $application = new Application(); $application->run(new ArrayInput($arguments)); }
public static function install() { $output = new ConsoleOutput(); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $output->writeln("<info>Sorry, automated installation is not yet supported on Windows!</info>"); $output->writeln("Please refer to the documentation for alternative installation methods: http://developer.joomlatools.com/platform/getting-started.html"); return; } $input = new ArgvInput(); if ($input->hasParameterOption(array('--no-interaction', '-n'))) { return; } $cwd = getcwd(); $www = dirname($cwd); $site = basename($cwd); $arguments = array('site:install', 'site' => $site, '--www' => $www, '--interactive' => true, '--mysql_db_prefix' => ''); $output->writeln("<info>Welcome to the Joomlatools Platform installer!</info>"); $output->writeln("Fill in the following details to configure your new application."); $application = new Application(); $application->run(new ArrayInput($arguments)); }