示例#1
0
文件: Config.php 项目: no22/gongo
 static function get($cfg = null)
 {
     if (is_null(self::$config)) {
         $cfg = is_null($cfg) ? dirname(__FILE__) . '/config.ini' : $cfg;
         self::$config = Gongo_Locator::get('Gongo_Config', $cfg);
     }
     return self::$config;
 }
示例#2
0
文件: Locator.php 项目: no22/gongo
 static function setConfig($cfg = null)
 {
     self::$defaultConfig = is_null($cfg) ? Gongo_Config::get() : $cfg;
 }