* @version 0.0.0 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ final class FrameworkBootstrap { /** * Private constructor, no instance is needed from this class as only * static methods exist. */ private function __construct () { // Prevent making instances from this "utilities" class } /** * Does the actual bootstrap * * @return void */ public static function doBootstrap () { // Load basic include files to continue bootstrapping require ApplicationEntryPoint::detectFrameworkPath() . 'main/interfaces/class_FrameworkInterface.php'; require ApplicationEntryPoint::detectFrameworkPath() . 'main/interfaces/registry/class_Registerable.php'; require ApplicationEntryPoint::detectFrameworkPath() . 'config/class_FrameworkConfiguration.php'; // Load main configuration require ApplicationEntryPoint::detectFrameworkPath() . 'config.inc.php'; } /** * Parses all parameters, like $_GET, $_POST, $_COOKIE and also "emulated" * from command-line. Accepted CLI parameters are in following forms: * * --foo=bar - parameter 'foo' gets value "bar" (string) * --enable-foo=true - parameter 'enableFoo' gets value true (boolean) * --baz=123 - parameter 'baz' get value 123 (integer) * * The same also works without 2 dashes as it was possible before: * * app=tests - launches application 'tests' (parameter 'app' gets string value "tests") */ public static function parseParameters () { } }