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
沈唁
3768a08ab3
fix redis config replace error ( #2635 )
...
* fix redis config error
* update
* update
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-12 12:02:08 +08:00
李铭昕
13d0fb58cc
v2.0.14 ( #2631 )
...
* v2.0.14
* Update translation
Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-10-12 10:40:47 +08:00
李铭昕
38d12e4e5d
Fixed http client does not works when using guzzle 7.0 and curl hook for hyperf/testing
. ( #2624 )
...
* Update HttpClient.php
* Create HttpClientTest.php
* Update HttpClientTest.php
* Update CHANGELOG-2.0.md
2020-10-10 17:22:32 +08:00
李铭昕
ad1fd279d5
Update changelog.
2020-10-04 18:59:05 +08:00
谷溪
5e70bad389
fix: fix memory leak in RetryAnnotationAspect ( #2607 )
...
* fix: fix memory leak in RetryAnnotationAspect
* Update CHANGELOG-2.0.md
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-03 07:11:33 +08:00
李铭昕
6a96fbaccb
Fixed documents.
2020-10-02 10:24:19 +08:00
Craig Lei
9aaf2735dc
Added sentinel mode for redis. ( #1868 )
...
Co-authored-by: tiantao <tiantao2991@163.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-01 13:36:52 +08:00
李铭昕
b74539d3a3
Allow whereNull
to accept array columns argument. ( #2603 )
...
* Fixed the error sql when the column is null.
* Added test cases.
* Update
2020-09-30 21:08:43 +08:00
李铭昕
50479409ca
Fixed @property
will be replaced by @property-read
when the property has getter
and setter
at the same time.
2020-09-30 15:41:46 +08:00
李铭昕
b9c729211b
Fixed crontab does not stops when using signal. ( #2594 )
...
* Fixed crontab does not stops when using signal.
* Update CHANGELOG-2.0.md
2020-09-28 17:56:39 +08:00
李铭昕
34ed6f37e4
v2.0.13 ( #2586 )
...
* Update CHANGELOG-2.0.md
* Update awesome-components.md
Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-09-28 10:47:04 +08:00
李铭昕
fdbc32a4e4
Fixed crontab does not works when using coroutine style server. ( #2590 )
...
* Added PHPDOc.
* Fixed crontab does not works when using coroutine style server.
2020-09-27 16:25:56 +08:00