Example #1
0
 public static function loadConfig($path = null)
 {
     if (is_null($path)) {
         $path = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config.ini';
     }
     BeeHub::$CONFIG = parse_ini_file($path, true);
     if (substr(BeeHub::$CONFIG['environment']['simplesamlphp'], -1) !== DIRECTORY_SEPARATOR) {
         BeeHub::$CONFIG['environment']['simplesamlphp'] .= DIRECTORY_SEPARATOR;
     }
     if (substr(BeeHub::$CONFIG['environment']['datadir'], -1) !== DIRECTORY_SEPARATOR) {
         BeeHub::$CONFIG['environment']['datadir'] .= DIRECTORY_SEPARATOR;
     }
 }