Exemplo n.º 1
0
 /**
  * 通过指定的KEY,优先从ENV文件中读取配置,如果ENV中没有,再去config目录下获取
  *
  * @param   string      $key    参数KEY(文件名.数组索引[.数组索引...])
  * @return  mixed               参数值
  */
 public static function getEnv(string $key = '')
 {
     return BaseConfig::getEnv($key);
 }
Exemplo n.º 2
0
 /**
  * 优先从开发环境中读取配置
  *
  * @param   mixed   $key        配置项
  * @return  mixed
  */
 function config(string $key = '')
 {
     return \Qp\Kernel\Config\BaseConfig::getEnv($key);
 }