Commit Graph

5718 Commits

Author SHA1 Message Date
李铭昕
f1d666ff22
Optimized requirement for di. (#2116)
* Optimized requirement for di.
* Only format code.
2020-07-14 17:58:29 +08:00
谷溪
4835335987
feat: Add snowflake trait for database model. (#2112)
* feat: Add snowflake trait for database model.

* doc: reword snowflake

* doc: reword snowflake

* doc: Add changelog

* refactor: rename HasSnowflake to Snowflake
2020-07-14 17:56:00 +08:00
nfangxu
51cde09441
Added SIGINT listened by Hyperf\Signal\Handler\WorkerStopHandler. (#2082)
* listen SIGINT

* ctrl+c do not need sleep

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-14 13:53:22 +08:00
沈唁
c88949fc3e
Don't kill SIGTERM if the process not exists. (#2110)
* Added check if the process exists to `hyperf/watcher`

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-14 13:42:37 +08:00
沈唁
2b143cf1ca
Added flysystem-cos for hyperf/filesystem (#2097)
* Added flysystem-cos for `hyperf/filesystem`

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-13 19:52:01 +08:00
黄朝晖
6f45957814
Merge pull request #2106 from sy-records/update-raw-link
use cdn for grafana.json
2020-07-13 18:22:22 +08:00
sy-records
7ca9fbf6aa use cdn for grafana.json 2020-07-13 14:49:49 +08:00
李铭昕
90992d6dd1
v2.0.2 (#2099) 2020-07-13 13:21:16 +08:00
黄朝晖
cfd2ac1e34
Merge pull request #2103 from sy-records/update-document-link
Update .php_cs
2020-07-13 13:12:52 +08:00
黄朝晖
8698275f0d
Merge pull request #2100 from limingxinleo/2.0-utils
Upgrade `doctrine/inflector` to `^2.0`.
2020-07-13 13:03:22 +08:00
沈唁
f63a3ad21d
Updated upgrade 2.0 (#2102) 2020-07-13 09:07:26 +08:00
李铭昕
d5900a5b61 Update Pluralizer.php 2020-07-13 09:00:34 +08:00
sy-records
a27f842791 Update .php_cs 2020-07-13 08:12:30 +08:00
黄朝晖
6bc48a5a3f
Merge pull request #2018 from cwb2819259/feat_prometheus_redis_support_cluster
feat: 新增prometheus使用redis打点支持Redis集群
2020-07-12 22:55:56 +08:00
李铭昕
b3295c89a9 Upgrade doctrine/inflector to 2.0 2020-07-12 19:56:42 +08:00
李铭昕
407bcee901 Moved ext-swoole to suggest for utils. 2020-07-12 18:58:09 +08:00
zonghay
6e09a80501
Server adds the OnWorkerExit callback by default (#1860)
* Server adds the OnWorkerExit callback by default

由于CoordinatorManager是根据OnWorkerExit回调来执行的,默认Server是不带这个回调的,server.php也没有配置。

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-12 13:08:09 +08:00
沈唁
acd830f0a5
Fixed document. (#2098)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-12 12:52:06 +08:00
沈唁
d7713af34c
fix typo (#2092) 2020-07-11 16:47:32 +08:00
沈唁
9490696950
Fixed type error for command vendor:publish. (#2093)
* fix return value type error

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-11 15:01:02 +08:00
沈唁
819523e13b
Adapte original response object. (#2090)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-11 09:37:15 +08:00
李铭昕
bcc60f5ded
Fixed class of command won't be loaded after gen:command. (#2089) 2020-07-10 17:49:18 +08:00
黄朝晖
e3d334fb26
Merge pull request #2085 from Reasno/retry
fix: fix buggy RetryFalsy.php
2020-07-10 16:44:36 +08:00
李铭昕
968e00f8b2 Optimized code. 2020-07-10 16:44:00 +08:00
黄朝晖
577f42a8ee
Merge pull request #2077 from sy-records/update-ws-doc
remove typehinting from websocket docs
2020-07-10 16:41:43 +08:00
黄朝晖
1396b7b36d
Merge pull request #2078 from sy-records/update-signal
updapte signal doc
2020-07-10 16:40:46 +08:00
黄朝晖
b64dda8ded
Update signal.md 2020-07-10 16:38:13 +08:00
黄朝晖
b2e76042db
Update release-planning.md 2020-07-10 13:56:28 +08:00
Reasno
5759f59966 chore: update CHANGELOG-2.0.md 2020-07-10 12:26:39 +08:00
Reasno
5aa4366a79 test: add tests 2020-07-10 12:22:53 +08:00
Reasno
2af6f2fd7a fix: fix buggy RetryFalsy.php 2020-07-10 12:16:55 +08:00
sy-records
2838178c88 updapte signal doc 2020-07-09 17:20:31 +08:00
sy-records
50f9c476ad remove typehinting from websocket docs 2020-07-09 16:53:21 +08:00
李铭昕
fea88bcff5 Removed useless code. 2020-07-08 18:50:34 +08:00
李铭昕
d18cf2e4b5 Optimized code. 2020-07-08 17:32:33 +08:00
李铭昕
fd903fd590 Removed func.php 2020-07-08 15:34:05 +08:00
李铭昕
d1431a9fc6 Deleted function container. 2020-07-08 14:43:25 +08:00
黄朝晖
39863c23ab
Merge pull request #2069 from hyperf/Reasno-patch-1
Update grpc.md
2020-07-08 14:29:12 +08:00
李铭昕
bdbfa6723e Format code. 2020-07-08 14:19:30 +08:00
李铭昕
a9c41928c7 Merge branch 'master' into pr/1554 2020-07-08 14:17:20 +08:00
沈唁
dd1eaeab20
Fixed bug that syntax parse error will cause worker exceptions (#2067)
* Optimization syntax parse error causing worker exceptions

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-08 14:15:22 +08:00
谷溪
9002fa2c47
Update grpc.md 2020-07-08 10:11:26 +08:00
黄朝晖
fdc59578a4
Update Redis.php 2020-07-07 17:15:14 +08:00
Littlesqx
984d1e7cc9
Fixed guzzle auto add header Expect: 100-Continue when put a large file. (#2055)
* Fixed guzzle auto add  header when put a large file.

* Added `rewriteHeaders` which can rewrite headers.

* Added test cases for expect.

Co-authored-by: Littlesqx <littlesqx@LittlesqxdeMacBook-Pro.local>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-07 15:50:52 +08:00
谷溪
942517a472
Fixed redis reconnection bug in socket.io server. (#2059)
* use sender to close connection

* reconect to mix subscriber after a disconnection

* fix phpstan complaints"

* add CHANGELOG-2.0.md. use disconnect method in sender.

Co-authored-by: 沈唁 <52o@qq52o.cn>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-07 14:34:23 +08:00
李铭昕
ab1094a30b
Changed sender which only support push and disconnect. (#2065)
* Changed sender which only support `push` and `disconnect`.

* Added document.
2020-07-07 13:26:34 +08:00
李铭昕
8920f3e3ff
Merge pull request #2054 from limingxinleo/2.0-model-cache
Added eager load relation for model-cache.
2020-07-07 10:20:11 +08:00
李铭昕
84a817b3d7 Added test cases for morphTo. 2020-07-07 10:02:50 +08:00
逍遥
44915d0ad1 fix: 修复Prometheus打点使用redis存储改变label数量导致报错 2020-07-06 15:07:13 +08:00
逍遥
d35a13b9d9 merge: branch 'master' into fix_promeuthes_redis_colletcor 2020-07-06 15:05:34 +08:00