李铭昕
7c601604a2
v2.0.20 ( #2830 )
...
* v2.0.20
* Update changelog.md
2020-11-23 09:18:44 +08:00
李铭昕
8b37f778b9
Fixed database connection has already been bound to another coroutine when used in defer.
2020-11-22 19:25:04 +08:00
Ludy
b9e9c07e26
Optimized comments for Hyperf\Database\Schema\ColumnDefinition
. ( #2839 )
...
* Add parameter prompt
* Optimized comments for ColumnDefinition.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-21 10:53:48 +08:00
李铭昕
63c71a4476
Fixed bug that amqp connection always be closed by client. ( #2831 )
...
* Fixed bug that amqp connection always be closed by client.
* Update CHANGELOG-2.0.md
2020-11-19 19:44:59 +08:00
李铭昕
c0d457d801
Optimized Hyperf\Server\ServerConfig
which return type of __set
should be void. ( #2827 )
...
* Optimized return type of `__set` should be void.
* Update CHANGELOG-2.0.md
2020-11-19 15:54:35 +08:00
zxyfaxcn
9a01e9455a
Optimized nacos process which can stop safely. ( #2805 )
...
* Fixed 心跳、配置获取进程\协程安全退出
* Added 协程服务模式服务注册、摘除
* Fixed 多个服务停服时只运行一次nacos服实例注销处理
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-18 19:28:43 +08:00
武杰
834b582c93
Changed the result from PaginatorInterface
to LengthAwarePaginatorInterface
for method paginate()
. ( #2824 )
...
* Changed the result from `PaginatorInterface` to `LengthAwarePaginatorInterface` for method `paginate()` in `Hyperf\Database\Query\Builder`.
* Added method `simplePaginate()` which return `PaginatorInterface` in `Hyperf\Database\Query\Builder`.
* Added test cases .
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-18 18:39:52 +08:00
Dleno
a9b3dde8f7
Optimized the exceptions thrown by Json
and Xml
. ( #2821 )
...
* 统一InvalidArgumentException错误抛出及捕获
* Added test cases.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-18 09:38:14 +08:00
武杰
6a4fbc8044
Fixed amqp consumer does not works when using fanout exchange. ( #2820 )
...
* amqp 类型fanout情况下 routing_key不存在的情况
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-17 16:02:10 +08:00
李铭昕
30162cbe30
v2.0.19 ( #2817 )
...
* v2.0.19
* Update changelog.md
2020-11-17 10:40:30 +08:00
张城铭
49705d8be8
Fixed Middleware does not work as expected when repeatedly configured ( #2807 )
...
* Fixed Middleware does not work as expected when repeatedly configured
* changelog
Co-authored-by: zhangchengming@kkguan.com <b8h5zr2hj0>
2020-11-17 10:20:34 +08:00
李铭昕
95ea06b30b
Fixed response body does not exists when bad request. ( #2803 )
...
* Fixed response body does not exists when bad request.
* Update JsonParser.php
* Update CHANGELOG-2.0.md
2020-11-13 15:09:11 +08:00
pandaLIU
3e8363f32f
update session config expire_minutes to cookie_lifetime ( #2802 )
2020-11-13 09:40:09 +08:00
pandaLIU
f606b0efc7
Added options.expire_minutes
for hyperf/session
. ( #2794 )
...
Added `options.expire_minutes` for `hyperf/session`
you can use it to control the expire time for cookies.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-12 10:07:04 +08:00
李铭昕
6e6c77c9d9
Fixed config-etcd does not works in coroutine style server. ( #2790 )
...
* Fixed config-etcd does not works in coroutine style server.
* Update CHANGELOG-2.0.md
2020-11-11 12:06:59 +08:00
pandaLIU
f092abb0c4
Use elastic index
instead of type
for searchableAs
. ( #2750 )
...
Use elastic `index` instead of `type` for `searchableAs`, when the config of `index` is `null` or the elastic version is more than `7.0.0`.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-10 18:38:58 +08:00
bytehello
72fbb8f3b8
fix call Non-static method statically ( #2788 )
...
* fix call Non-static method (__handlePropertyHandler) statically
* Fixed test cases.
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-10 15:52:13 +08:00
李铭昕
56064931e3
Fixed nsq consumer does not works in coroutine style server. ( #2783 )
...
* Fixed nsq consumer does not works in coroutine style server.
* Update CHANGELOG-2.0.md
2020-11-10 00:03:23 +08:00
李铭昕
2b29ba5905
v2.0.18 ( #2780 )
2020-11-09 10:34:24 +08:00
pandaLIU
24a67875ff
Fixed server start failed, when don't publish config of translation. ( #2779 )
...
* fix: fixed translation not config thorw error
* Added test cases.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-07 16:53:43 +08:00
李铭昕
a09339ab8d
Added event WaitTimeout.
2020-11-06 22:43:57 +08:00
fsl
c0f4c0c4e5
Fixed memory leak when websocket hande shake failed. ( #2768 )
...
* 修复websocket握手失败不会释放WsContext中set的值而导致内存泄漏的问题
* Update Server.php
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-11-05 14:59:30 +08:00
李铭昕
28ed50180b
Use Hyperf\Utils\Coroutine::create()
instead of Swoole\Coroutine::create()
for Concurrent. ( #2765 )
...
* Update Concurrent.php
* Update CHANGELOG-2.0.md
2020-11-05 12:42:11 +08:00
李铭昕
9a56e44079
Fixed options
will be replaced sometimes.
...
* When `@Controller` has more than one `@Mapping`.
* When on method has more than one `@Mapping`.
2020-11-03 12:06:15 +08:00
李铭昕
a51e20996d
v2.0.17 ( #2738 )
2020-11-02 13:11:45 +08:00
李铭昕
46145a6904
Only execute task in the worker process. ( #2746 )
...
* Only execute task in the worker process.
* Update CHANGELOG-2.0.md
* Update AfterWorkerStartListener.php
2020-11-01 19:55:11 +08:00
ren-jimmy
8f33ddbdf9
Support json-rpc for tracer component. ( #2625 )
...
* Update SpanStarter.php
* Added JsonRpcAspect.
Co-authored-by: jimmy <you@example.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-31 20:42:41 +08:00
jan
85b2ad4356
The methods with prefix __
will not be registered into service for rpc-server
. ( #2728 )
...
* rpc register method filter __construct
* Added test cases
* Update CHANGELOG-2.0.md
Co-authored-by: byphper
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-29 18:16:04 +08:00
weskiller
00d856c748
Support scope methods for model ide. ( #2733 )
...
- Added `@mixin` into Model, you can use static methods friendly.
- Added option `--with-ide` which used to generate ide file.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-29 17:21:26 +08:00
李铭昕
1ed4a3f551
Added option --with-ide
which used to generate ide file. ( #2726 )
...
* Added withIde for ModelOption
* Added option --with-ide which used to generate ide file.
* Deleted useless code.
2020-10-28 16:36:26 +08:00
weskiller
6d08156a83
Added @mixin into Model, you can use static methods friendly. ( #2709 )
...
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-28 14:17:16 +08:00
李铭昕
89b3ea2b27
Fixed Paginator::resolveCurrentPath
deos not works. ( #2723 )
...
* Fixed `Paginator::resolveCurrentPath` deos not works.
* Update
2020-10-28 12:06:37 +08:00
李铭昕
71f1e600fb
Fixed method Arr::merge
does not works when array1
does not constains the $key
. ( #2719 )
...
The code below will be executed failed
```
Arr::merge(['id' => 2], ['id' => 1, 'name' => ['Hyperf']]);
```
2020-10-27 21:34:10 +08:00
李铭昕
da784eef16
v2.0.16 ( #2692 )
2020-10-26 12:07:29 +08:00
沈唁
c899595fbc
Add Swoole Tracker leak tool ( #2696 )
...
* add Swoole Tracker leak tool
* Update phpstan.neon
* update tips
* Update phpstan.neon
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 15:31:02 +08:00
谷溪
61624519fb
Fixed unexpected behavior in retry budget for hyperf/retry
. ( #2693 )
...
* fix: retry budget bug
* fix: fix travis
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 15:09:25 +08:00
李铭昕
9da3463905
Fixed method define
does not works when the class has been resolved. ( #2695 )
...
* Fixed method `define` does not works when the class has been resolved.
* Added test cases.
2020-10-21 14:59:53 +08:00
djunny
d76d1f7a16
Optimized code for CastsValue ( #2680 )
...
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 12:36:15 +08:00
Hugh
79f810d3af
Optimized FindDriver
which can support alpine image. ( #2611 )
...
Co-authored-by: 李铭昕 <715557344@qq.com>
Co-authored-by: sy-records <52o@qq52o.cn>
2020-10-21 11:28:34 +08:00
Dleno
20710a40e5
Optimized amqp consumer which can stop safely. ( #2662 )
...
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 11:04:27 +08:00
谷溪
27c5ce7837
ensure span finished and flushed. ( #2690 )
...
* fix: ensure span finishes
* fix: ensure span finished and flushed
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 10:20:38 +08:00
djunny
f0a8d72d36
Added method getCacheTTL
for CacheableInterface
which can control cache time each models. ( #2682 )
...
Co-authored-by: dj <github@djunny.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 10:02:30 +08:00
李铭昕
864f500eab
v2.0.15 ( #2679 )
2020-10-19 15:08:13 +08:00
Nash Gao
6b5b36ce21
Optimized the response when parse parameters failed for json-rpc. ( #2656 )
...
* add try catch for parseParameters method in order to return valid error response to rpc client
* let parseParameter catch \InvalidArugmentException
* let parseParameter catch \InvalidArugmentException
* Format code.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-15 12:05:56 +08:00
李铭昕
cbf6ae79bc
Added method Hyperf\Utils\Resource::from
which can convert string
to resource
. ( #2654 )
...
* Added `Hyperf\Utils\Resource::resourceFor`.
2020-10-13 21:15:07 +08:00
李铭昕
d8a721ffa9
Fixed undefined method unsearchable for scout:flush
. ( #2643 )
...
* Fixed scout:flush does not works.
* Update CHANGELOG-2.0.md
2020-10-12 20:02:57 +08:00
李铭昕
84e19f78de
Fixed bug that RedisSecondMetaGenerator
will generate the same meta. ( #2640 )
...
* Fixed bug that `RedisSecondMetaGenerator` will generate the same meta.
* Update RedisMetaGenerator.php
* Update CHANGELOG-2.0.md
2020-10-12 19:03:31 +08:00
李铭昕
044d827d2a
Fixed bug that RedisSecondMetaGenerator
will generate the same meta. ( #2634 )
...
* Update RedisSecondMetaGenerator.php
* Update RedisMetaGeneratorTest.php
* Update CHANGELOG-2.0.md
2020-10-12 17:10:52 +08:00
李铭昕
9c0a2af77d
Fixed exception will not be normalized for json-rpc. ( #2639 )
...
* Fixed exception will not be normalized for json-rpc.
* Update CHANGELOG-2.0.md
2020-10-12 16:00:58 +08:00
谷溪
eb1fb28e33
fix: broken interface binding in retry annotation ( #2637 )
...
* fix: broken interface binding in retry annotation
Di interface bindings are not available at the time of annotation parsing.
* Update Retry.php
* changelog
* test: fix test bindings
* Update RetryAnnotationAspectTest.php
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-12 14:13:50 +08:00