/** * 获取配置 * @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; }