李铭昕
a24f7dc49a
Fixed ci
2020-11-09 18:41:21 +08:00
李铭昕
84ac3f0a0d
Merge branch 'master' into 2.1-merge
...
# Conflicts:
# README.md
# src/amqp/src/Message/ConsumerMessageInterface.php
# src/utils/src/Coroutine/Concurrent.php
# src/websocket-server/src/Server.php
2020-11-09 18:25:43 +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
李铭昕
73e7b79f7d
Update composer.json for watcher. ( #2776 )
2020-11-06 13:40:22 +08:00
李铭昕
7d92c9412c
Optimized guzzle to adapt hyperf engine. ( #2771 )
...
* Optimized guzzle to adapt hyperf engine.
* Update
* Deleted useless code.
* Update PoolHandler.php
2020-11-05 18:41:31 +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
李铭昕
05da0fa108
Removed doctrine/common ( #2760 )
2020-11-04 09:42: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
李铭昕
2e7a349b51
Optimized code of concurrent to adapt hyperf engine. ( #2742 )
2020-10-31 12:29:27 +08:00
李铭昕
5cab34c07b
Fixed bug that process does not works in swow server. ( #2741 )
...
* Fixed bug that process does not works in swow server.
* Update CHANGELOG-2.1.md
2020-10-31 10:49:05 +08:00
李铭昕
199a6e2324
Added view-engine component. ( #2737 )
...
Co-authored-by: nfangxu <nfangxu@gmail.com>
2020-10-30 16:33:16 +08:00
Fangx
d0db944c9b
Upgrade the version for jonahgeorge/jaeger-client-php to adapt composer v2 ( #2725 )
2020-10-29 18:19:06 +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
José Carlos Chávez
caf4435d2b
chore: upgrades zipkin to 2.0. ( #2712 )
...
* chore: upgrades zipkin to 2.0.
* fix(tracer): fixes the static checks.
Code would still work with no changes as Zipkin 2.0 is mostly retrocompatible but static checks fails.
* chore(tracer): upgrades zipkin-opentracing to 0.2.0
* Format code.
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-29 15:26:12 +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
李铭昕
07e0181cff
Don't set data_type
for PDOStatement::bindValue
. ( #2720 )
...
* Use `STR` instead of `INT` for the property `data_type` of method `bindValue` when the value is int.
* Added test cases
* Update MySqlConnection.php
2020-10-28 10:57:29 +08:00
李铭昕
e0402702e2
Test Guzzle 7 in Github Actions
2020-10-28 09:36:38 +08:00
李铭昕
11dabbf792
Merge branch 'master' into 2.1-merge
...
# Conflicts:
# .travis.yml
# composer.json
# src/json-rpc/src/CoreMiddleware.php
2020-10-28 09:18:07 +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
李铭昕
3108b7d5a4
Optimized code of guzzle coroutine handler to adapt hyperf engine. ( #2705 )
...
* Optimized code of guzzle coroutine handler to adapt hyperf engine.
* Added test cases for pool handler.
* Update composer.json
* Update CHANGELOG-2.1.md
* Update
2020-10-24 17:43:46 +08:00
李铭昕
be9dadef5a
Update SwowServer.php ( #2703 )
2020-10-23 22:33: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
李铭昕
4d7d4744d7
Removed component hyperf/paginator
from database's dependencies. ( #2694 )
...
* Removed paginator from database dependencies.
* Update CHANGELOG-2.1.md
2020-10-21 13:50:23 +08:00