配置文件读取工具类
CONFIG_KEY
全局变量中的配置文件主键
$instance : object
静态实例
$config : array
全局配置引用
getInstance() : void
单例方法
__construct()
构造函数
get(mixed $key = null) : mixed
根据键获取配置数组,如果键不存在则返回空数组
setConfig(string $config) : void
setter
addConfig(array $config) : void
将传入的配置数组与已有数组合并
getConfig() : array
getter
exist(string|array $keys) : void
检查键是否存在