Commit Graph

6732 Commits

Author SHA1 Message Date
tegic
9e07b636ba
Fixed coroutines deadlock caused by cleaning up expired fds in socketio-server when stop server. (#4042)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-13 10:07:55 +08:00
Nathan.ZH
8e53908320
Added method ConsumerDelayedMessageTrait::getDeadLetterExchange(). (#4040)
* Added method `ConsumerDelayedMessageTrait::getDeadLetterExchange()` which used to rewrite `x-dead-letter-exchange` by yourself.

Co-authored-by: 张玉波 <zhangyubo@scjuchuang.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-10 12:12:02 +08:00
Bruce Dou
a9f3a971c9
Support sameSite=None when return response with cookies. (#4013)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-10 09:26:43 +08:00
沈唁
81310448de
Update docs and translate. 2021-09-09 09:29:08 +08:00
李铭昕
bb85d29ca0
Moved Macroable from Hyperf\Database\Model\Collection to Hyperf\Utils\Collection. (#4017) 2021-09-08 14:55:45 +08:00
Leo Cavalcante
cb077017e1
fix(metrics): success rate calculation (#4028) 2021-09-08 14:38:50 +08:00
李铭昕
0765cf35cc
Added test cases for Collection::macro(). (#4032) 2021-09-08 13:45:29 +08:00
李铭昕
11391280ba
Support test cases in container v2.0 (#4031) 2021-09-08 13:14:39 +08:00
李铭昕
a4727a4b1e Fixed bug that async-queue broken caused by uncompress model failed. 2021-09-08 12:11:54 +08:00
李铭昕
db5a7488ee Removed type hint from UnCompressInterface. 2021-09-08 12:11:54 +08:00
沈唁
ccd7d8b6fe
Update resource link (#4024) 2021-09-08 08:46:10 +08:00
D.J.Hwang
6ad5713817
Added argument $attempts into $callback when using function retry(). (#4021)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-07 09:41:25 +08:00
李铭昕
c8aa5d398b
Release v2.2.7 (#4008) 2021-09-06 10:50:20 +08:00
D.J.Hwang
dcbb709f56
Ignored the phpstan error about separator of function explode expects non-empty-string, string given
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-06 10:20:50 +08:00
李铭昕
705370fb1d
Added test cases. 2021-09-05 00:00:43 +08:00
李铭昕
00c94e5cae Format code 2021-09-04 23:47:15 +08:00
huangdijia
1a4f483f5c Added methods for Str 2021-09-04 23:47:15 +08:00
huangdijia
5a6ebf6c2c Added Stringable class and Str::of() method 2021-09-04 23:47:15 +08:00
woainixyz1
37e7bf375e
Support method FormRequest::scene() which used to rewrite different rules according to different scenes. (#4002)
Co-authored-by: codelin <49402937@qq.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-04 17:35:00 +08:00
Kids Return
89818f47ad
Optimized method MethodDefinitionCollector::getOrParse() to avoid deprecated in PHP8. (#4009)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-09-03 23:52:27 +08:00
李铭昕
323b9e78f1 Format code 2021-09-01 00:09:18 +08:00
李铭昕
65d9be248d Fixed unexpected termination of nats consumer after timeout 2021-09-01 00:09:18 +08:00
fandaren
7bbb7f9727
Fixed bug that apollo does not support https. (#3998)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-31 23:50:50 +08:00
李铭昕
be13502347
Fixed type error of return value for watcher. (#3992)
* Fixed type error of return value for watcher.

* Update
2021-08-30 14:47:00 +08:00
李铭昕
1fda790293
Release v2.2.6 2021-08-30 10:46:59 +08:00
李铭昕
1bd6d1b386
Added option command which used to define your own start command. (#3989)
* Added option `command` which you can used to define your own start command.

* Update CHANGELOG-2.2.md
2021-08-29 12:45:52 +08:00
Hyman
c27f12655e
Support delayed message exchange for AMQP. (#3987)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-28 17:36:30 +08:00
沈唁
b996c3c690
Fixed OSS hook failed when using SWOOLE_HOOK_NATIVE_CURL. (#3986)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-28 12:09:18 +08:00
沈唁
4c16d722d6
Update questions (#3975) 2021-08-26 09:12:21 +08:00
李铭昕
ae2cf79ed4
Fixed bug that timeout property does not work in circuit breaker. (#3979) 2021-08-25 19:07:26 +08:00
Kids Return
cf1bc96e28
Fixed type error when using Hyperf\Validation\Rules\Unique::__toString() in PHP8. (#3969)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-23 15:38:19 +08:00
upper1027
fb2a0536d1
Added QA about the server couldn't start caused by grpc and pcntl. (#3971)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-23 15:10:55 +08:00
李铭昕
3a0d267650
Release v2.2.5 (#3968) 2021-08-23 11:09:11 +08:00
ushell
07d9984b5c
Fix typo for example of nacos config (#3961)
* update config_nacos url to uri

* Update config_center.php

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-20 11:54:12 +08:00
Vinchan
5f2ca20fbf
Optimized code
* ValidatesAttributes remove catch "Exception"

* Added Annotations of PHP8 for devtool.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-19 14:58:40 +08:00
李铭昕
63c82e4d5f
Fixed bug that crontab cannot be closed safely in coroutine server. (#3960) 2021-08-19 10:21:00 +08:00
tangq
3e0b43a42d
Fixed validate rule date does not work as expected when the value isn't string. (#3959)
* Added suggest requirement for `hyperf/database`.

* Added test cases

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-18 16:51:36 +08:00
李铭昕
daf199c967 Optimized code 2021-08-18 16:28:09 +08:00
李铭昕
56a2eddd3e Added Hyperf\Utils\CodeGen\PhpDocReader which used to read return type from class methods. 2021-08-18 16:28:09 +08:00
D.J.Hwang
381c9cfd45 Supported get returnType from docComment 2021-08-18 16:28:09 +08:00
dayday
84210c5b4c
Merge pull request #3946 from limingxinleo/release-v2.2.4
Release v2.2.4
2021-08-16 10:21:33 +08:00
limingxinleo
19c16505c7 Update docs and translate 2021-08-15 01:56:23 +00:00
李铭昕
ebd3c9532a Release v2.2.4 2021-08-15 09:55:23 +08:00
Leo Cavalcante
0962f623c3
Added method Str::mask which used to replace chars from a string by a given char. (#3947)
* Replaces the first or the last ones chars from a string by a given char.
If the `$offset` is negative it starts from the end.

* Support length

* Support Chinese

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-15 09:45:16 +08:00
Vinchan
ea8eef1d90
Encapsulated the code for reading aspect meta properties. (#3944)
* Format code

* Update CHANGELOG-2.2.md

* Added test cases.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-14 10:40:30 +08:00
D.J.Hwang
2beb41177a
Support service register for rpc-multiplex. (#3941)
* 支持 rpc-multiplex 注册到服务中心

* 支持 rpc-multiplex 注册到服务中心,增加监控检查支持

* Support service register for `rpc-multiplex`.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-13 18:07:28 +08:00
Nathan.ZH
f718fa53ef
Support requeue the message when return NACK for AMQP consumer.。 (#3932)
* Update CHANGELOG-2.2.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-12 10:16:00 +08:00
李铭昕
8b6d3f6d52
Fixed config of config_center.drivers.nacos.client does not work. (#3926) 2021-08-10 12:56:07 +08:00
tw2066
107e08d185
Fixed bug that heartbeat failed caused by nacos light beat enabled. (#3925)
* Format code

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-08-10 10:47:57 +08:00
李铭昕
6bf0f5d3da Format code 2021-08-10 10:20:43 +08:00