/** * Initializes the application. * * Sets the application's root directory, loads the configuration file * and initializes the authorization. * * @param string $rootDir Root directory of this application */ public static function init($rootDir) { self::$rootDir = $rootDir; if (ConfigFile::load()) { Security\Authorization::init(); } }
protected function getConfigVars() { require_once 'ConfigFile.class.php'; // Load the config $configFilePath = $this->argv[1]; global $configFile; $configFile = new ConfigFile($configFilePath); $configFile->load(); $vars = $configFile->getVars(); return $vars; }