GET初始化配置
@param $key  需要查询的key
@param $config 配置
@return bool
967424
public static function initGet($key,$config)
    {
        /**
         * 缓存路径
         */
        static::$targetDir = $config['targetDir'].'cache'.DIRECTORY_SEPARATOR.static::$typeCache.DIRECTORY_SEPARATOR;

        static::$key = $key;
        /**
         * 判断是否分组
         */
        if(is_array($key) && count($key) == 2){
            static::$group = $key[0];
            static::$key = $key[1];
        }else{
            static::$group = 'public';
        }
        /**
         * md5
         */
        static::$md5key =  md5(static::$key );
        /**
         * 文件名称
         */
        static::$fileName = static::$group.'_'.static::$md5key.static::$extension;
        /**
         * 完整路径+文件名称
         */
        static::$path = static::$targetDir.static::$fileName;
        return true;
    }
390291
public function get($key, $default = null)
    {
        $pieces = explode('.', $key);
        $config = $this->config;

        foreach ($pieces as $piece) {
            if (!isset($config[$piece])) {
                return $default;
            }

            $config = $config[$piece];
        }

        return $config;
    }
1271847
public static function get($key = null)
    {
        if ($key) {
            $config = static::findBy(['key' => $key]);
            return $config ? $config->getValue() : '';
        } else {
            $config = [];
            foreach (static::all() as $c) {
                $config[$c->key] = $c->getValue();
            }
            return $config;
        }
    }
105216
static public function get($key = null, $default = null) {
        if (is_null($key)) return json_decode(json_encode(self::$_config));
        
        $config = &self::$_config;
        
        return Utils::arrayGet($config, $key, $default);
    }
53393
public function get($key, $config = [])
    {
    	$key= $this->resolveAlias($key);
    	
        if (isset($this->_singletons[$key])) {  // singleton
            return $this->_singletons[$key];
        } elseif (!isset($this->_definitions[$key])) {  // not set, try build, key tread as className 
            $tryDef = static::formatDefinition($key, $config);
            if (!isset($tryDef['class']) || !class_exists($tryDef['class'])) {
                return null;
            }
            $key = $tryDef['class'];
            return $this->build($key, $config);
        }
        
        $definition = $this->_definitions[$key];
        
        if (is_callable($definition, true)) {// not strict callable, true 参数会使用 'className:method' 也是 callable
            if (!is_callable($definition, false) && is_string($definition)) {
                $definition = $this->resolveCallable($definition); 
            }
            // callable: function($container, $config)
            $object = call_user_func($definition, $this, $config); 
        } elseif (is_array($definition)) {
            $concrete = $definition['class'];
            unset($definition['class']);
			
            if ($config) {
                $definition = array_merge($definition, $config);
            }
            
            $object = $this->build($concrete, $definition);
        } elseif (is_object($definition)) {
            return $this->_singletons[$key] = $definition;
        } else {
            throw new InvalidConfigException("Unexpected object definition type: " . gettype($definition));
        }
		
        // 判断是否存在 _singletons 的 key，不能使用 isset()
        if (array_key_exists($key, $this->_singletons)) {
            // singleton
            $this->_singletons[$key] = $object;
            // set alias
            $this->alias('\\' . get_class($object), $key);
        }

        return $object;
    }
774898
public function get(string $key, $default = null)
    {
        $result = $this->iterateConfig($key);

        return is_null($result) ? $default : $result;
    }
989815
static public function getInstance($config=array()) {
        $md5    =   md5(serialize($config));
        if(!isset(self::$instance[$md5])) {
            // 解析连接参数 支持数组和字符串
            $options    =   self::parseConfig($config);
            // 兼容mysqli
            if('mysqli' == $options['type']) $options['type']   =   'mysql';
            // 如果采用lite方式 仅支持原生SQL 包括query和execute方法
            $class  =   !empty($options['lite'])?  'Think\Db\Lite' :   'Think\\Db\\Driver\\'.ucwords(strtolower($options['type']));
            if(class_exists($class)){
                self::$instance[$md5]   =   new $class($options);
            }else{
                // 类没有定义
                E(L('_NO_DB_DRIVER_').': ' . $class);
            }
        }
        self::$_instance    =   self::$instance[$md5];
        return self::$_instance;
    }
517510
public function get($key = null, $default = null)
    {
        if (is_null($key)) {
            return Config::get($this->configKey());
        }

        return Config::get($this->configKey() . '.' . $key, $default);
    }
718396
public static function configure(array $config)
    {
        foreach ($config as $key => $value) {
            // 子类处理
            if (is_array($value)) {
                if (array_values($value) === $value) {
                    // 非关联数组
                    foreach ($value as $subNumberKey => $subValue) {
                        if (isset($subValue['ref'])) {
                            $config[$key][$subNumberKey] = self::configure($subValue);
                        }
                    }
                } else {
                    // 引用依赖
                    if (isset($value['ref'])) {
                        $config[$key] = self::configure($value);
                    }
                    //组件
                    if (isset($value['component'])) {
                        $name         = $value['component'];
                        $config[$key] = self::$app->$name;
                    }
                }
            } elseif ($key === 'ref') {
                // 实例化
                return \Mix\Core\Bean::newInstance($config['ref']);
            }
        }
        return $config;
    }
823181
public function getConfig($key)
    {
        return isset($this->config[$key])
        ? $this->config[$key]
        : false;
    }
713533
public function getConfig($key) {
    if (isset($this->config[$key])) {
      return $this->config[$key];
    }
    return FALSE;
  }
372878
public static function get($key, $default = NULL) {
        if (isset(self::$configs[$key]))
            return self::$configs[$key];

        return $default;

    }
17052
public function getConfig($key)
  {
    if (empty($key)) {
      return '';
    }

    $keys  = explode('.', $key);
    $value = array();

    if (isset($this->config[$keys[0]])) {
      $value = $this->config[$keys[0]];
    }

    if (empty($value)) {
      return $value;
    }

    $totalKey = count($keys);

    if ($totalKey > 1) {
      for ($i = 1; $i < $totalKey; ++$i) {
        if (isset($value[$keys[$i]])) {
          $value = $value[$keys[$i]];
        }
      }
    }

    unset($keys);

    return $value;
  }
1325275
public function getConfig($key, Configuration $default = NULL)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return new static($value);
		}
		
		return ($default === NULL) ? new static() : $default;
	}
12538
public function get($key, $default = null)
    {
        $config = $this->config;

        foreach (explode('.', $key) as $k) {
            if (! isset($config[$k])) {
                return $default;
            }
            $config = $config[$k];
        }

        return $config;
    }
716539
public function get($key)
    {
        $parts = explode('.', $key);
        $offset = $this->config;

        foreach($parts as $part) {
            if(!isset($offset[$part])) return null;

            $offset = $offset[$part];
        }

        return $offset;
    }
1109165
public function getConfig($key = null) 
    {	
    	if($key!=null && isset($this->_config[$key])) { 
    		
    		return $this->_config[$key];
    	
    	} elseif($key == null) {
    		
            return $this->_config;
    	}

        return null;
    }