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));
}