Skip to content

v2.1.15

Choose a tag to compare

@onanying onanying released this 12 Mar 11:40
· 1189 commits to master since this release

本次更新主要是为了和即将推出的微服务开发统一骨架代码,在 SyncInvoke JsonRpc 两个模块有不兼容改动,大家根据 https://www.kancloud.cn/onanying/mixphp2-1/1555270 升级旧骨架代码。

  • mix/mix-skeleton http 模块拆分为 Api/Web 两个模块
  • mix/mix-skeleton http 由原来的通过 $server->handle() 处理请求,修改为 $server->start($this->route) 通过路由类执行
  • mix/route 增加 HandlerInterface 实现,同时增加服务注册功能
  • mix/http-message ServerRequest->getHeaders() 方法返回值由 string[] 修改为 string[][]
  • mix/redis-subscribe 优化消息处理太慢导致的阻塞问题
  • mix/database mix/redis 增加默认拨号器,无需用户自行定义,可直接依赖注入修改参数