Ejemplo n.º 1
0
Archivo: Qiniu.php Proyecto: wuxw/YYF
 /**
  * 获取配置
  * @method config
  * @param  [type] $key [description]
  * @return [type]      [description]
  * @author NewFuture
  */
 private static function config($key = null)
 {
     if (null === self::$_config) {
         $path = \Config::get('secret_config_path');
         $type = \Config::get('upload.type');
         self::$_type = $type;
         self::$_config = (new \Yaf_Config_Ini($path, $type))->toArray();
     }
     return $key ? self::$_config[$key] : self::$_config;
 }