swoft-component
swoft-component copied to clipboard
📦 This is a repository of centralized management of all swoft core components
### What does this PR do? 修复 当rpc服务端处理超时而导致客户端 timeout 时,客户端中使用同一 connection 的后续请求会得到上一次请求的处理结果 [类似这种](https://github.com/swoft-cloud/swoft/issues/1472) #### Does this fix any issues or need any specific reviewers? Fixes: swoft-cloud/swoft# Reviewers: @
### What does this PR do? 修复 当批量更新时 字段里有 单引号 时bug. #### Does this fix any issues or need any specific reviewers? Fixes: swoft-cloud/swoft# Reviewers: @ ### Motivation ### Additional...
### What does this PR do? fix this issue: https://github.com/swoft-cloud/swoft/issues/1365 #### Does this fix any issues or need any specific reviewers? Fixes: swoft-cloud/swoft#1365 Reviewers: @inhere @sakuraovq ### Motivation question: 生產環境大量連線時,會出現...
PHPRedis 3.5 support auth as array ['username', 'password'] or ['user' => 'username', 'pass' => 'password']. Because password property in RedisDb has type string, I added support for new option for...
### What does this PR do? Dynamic process number ### Motivation When I modify workerId array, I must change the process number by hand. ### More - [x] Added/updated tests...
…es # 1322 ### What does this PR do? 支持用户自定义模型getter ### Motivation 业务数据库设计中,经常使用英文逗号分隔的字段,或json_encode过的字段,通常希望取出来的时候是数组,方便直接返回给前端。但目前使用entity:create的默认是string类型,如果修改 实体的getter强制 explode(',' $val)并返回数组时,读取数据没有问题,但插入、更新操作的时候报错 array to string...,参考 swoft-cloud/swoft#1322
https://github.com/swoft-cloud/swoft-component/blob/b60c4f5b539567f7092bacd9e0cd41ed883717af/src/bean/src/Annotation/Parser/InjectParser.php#L50 https://www.php.net/manual/reflectionproperty.gettype.php For example: ``` /** * @Inject() */ private SomeInterface $someProperty; ``` Instead of ``` /** * @Inject(SomeInterface::class) */ private SomeInterface $someProperty; ``` Or more ugly ``` /** *...
https://github.com/swoft-cloud/swoft-component/blob/83cafdd4fa5d94ac3935d034f9d83886a2ca764f/.travis.yml#L52 https://github.com/swoole/swoole-src/releases/tag/v4.5.1