示例#1
0
 /**
  * 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();
     }
 }
示例#2
0
 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;
 }