/** * 初始化连接对象的数据(准备连接数据) * * @throws \ErrorException */ protected static function initConnection() { $readConfig = new DBConfig(); self::$conn_list = $readConfig->getAllConnection(); self::$conn_list['db'] = $readConfig->getDefaultConnection(); self::$conn_name_list = array_keys(self::$conn_list); }