run() public method

Dispatches a request to one of the step controllers
public run ( string $step ) : void
$step string The installation step to run
return void
Ejemplo n.º 1
0
<?php

/**
 * Elgg install script
 *
 * @package Elgg
 * @subpackage Core
 */
// check for PHP 4 before we do anything else
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
    echo "Your server's version of PHP (" . PHP_VERSION . ") is too old to run Elgg.\n";
    exit;
}
require_once __DIR__ . "/vendor/autoload.php";
$installer = new ElggInstaller();
$step = get_input('step', 'welcome');
$installer->run($step);
Ejemplo n.º 2
0
 /**
  * Renders a web UI for installing Elgg.
  * 
  * @return void
  */
 public static function install()
 {
     ini_set('display_errors', 1);
     $installer = new \ElggInstaller();
     $step = get_input('step', 'welcome');
     $installer->run($step);
 }