Commit Graph

5993 Commits

Author SHA1 Message Date
pandaLIU
3e8363f32f
update session config expire_minutes to cookie_lifetime (#2802) 2020-11-13 09:40:09 +08:00
SparkLee
29e15dec15
fix typo (#2795) 2020-11-12 11:38:24 +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
李铭昕
f3519e58d6
Fixed concurrent does not exists some times. (#2778)
* Fixed concurrent does not exists some times.
2020-11-07 11:30:19 +08:00
李铭昕
a09339ab8d Added event WaitTimeout. 2020-11-06 22:43:57 +08:00
李铭昕
4d6ed9982b Won't throw MaxConsumptionException when the number of consume is more than MaxConsumption. 2020-11-06 22:43:57 +08:00
李铭昕
0a8c8a96ef
Fixed $auth does not support null for low version of ext-redis. (#2777)
* Fixed `$auth` does not support `null` for low `ext-redis` version.

* Update

* Update RedisTest.php
2020-11-06 15:50:08 +08:00
李铭昕
f3f77eb263
update doc (#2769)
* Update di.md

* Update async-queue.md
2020-11-05 16:35:24 +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
pandaLIU
27bd358783
updated communication.md (#2763)
* updated doc

* updated communication.md
2020-11-05 10:53:28 +08:00
李铭昕
c143782b2e
Middleware of options should be replaced by Annotation @Middleware. (#2755) 2020-11-03 16:33:34 +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
李铭昕
e2c46dd172 Support options for @AutoController...
* Support options for `@AutoController`
* Support options for `@Controller`
* Support options for `@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
沈唁
7cf0d5894c
Add Memory Leak Detection Middleware to Swoole Tracker (#2747) 2020-11-01 18:16:44 +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
weskiller
a044700936
Format code. (#2739)
* Fixed GenerateModelIDEVisitor scope arguments

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-31 16:06:50 +08:00
李铭昕
199a6e2324
Added view-engine component. (#2737)
Co-authored-by: nfangxu <nfangxu@gmail.com>
2020-10-30 16:33:16 +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
ecareyu
3c7ccab464
Update document (#2731)
* 增加一个关于$maxAttempts参数的说明,否则用户不留意根本不知道这玩意的重试默认是关掉的

* Format doc

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-29 15:59:31 +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
李铭昕
db6313ccdd
Sort status badge (#2724) 2020-10-28 12:20:21 +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
李铭昕
06fe2ac429 Added workflows to test. 2020-10-27 23:42:29 +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
黄朝晖
c07598f327
Merge pull request #2707 from jeroenherczeg/translation_for_snowflake
English translation for snowflake
2020-10-26 01:59:06 +08:00
protoku
3a66a8c1f4 Undo utils 2020-10-25 10:05:53 +01:00
protoku
653929fb03 Translation for snowflake 2020-10-25 10:04:13 +01: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
jonny77
6dfbf147bd
Update async-queue.md (#2691)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 13:20:40 +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
沈唁
b42419714b
update max_coroutine (#2685) 2020-10-19 18:47:35 +08:00
李铭昕
864f500eab
v2.0.15 (#2679) 2020-10-19 15:08:13 +08:00