/** * 读取配置 * @method config * @param [string] $key [配置变量名] * @return [mixed] [description] * @author NewFuture */ private static function config($key) { if (null == self::$_config) { $path = Config::get('secret_config_path'); self::$_config = (new Yaf_Config_Ini($path, 'encrypt'))->toArray(); } return self::$_config[$key]; }