Commit Graph

291 Commits

Author SHA1 Message Date
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
李铭昕
8032cc206a
Fixed amqp consumer does not starts when using coroutine style server. (#2589)
* Fixed amqp consumer does not starts when using coroutine style server.

* Update CHANGELOG-2.0.md
2020-09-27 15:35:47 +08:00
李铭昕
21eb870b2d
Don't delete nacos service when shutdown. (#2584)
* Don't delete nacos service when shutdown.

* Update CHANGELOG-2.0.md
2020-09-25 17:03:47 +08:00
李铭昕
1cbbf3516e
Fixed redis connection has already been bound to another coroutine. (#2582)
* Added test cases.

* Update

* Update CHANGELOG-2.0.md
2020-09-24 20:45:35 +08:00
李铭昕
fea7f0a1f2
Fixed event AfterProcessHandle won't be dispatched when throw exception in process. (#2578)
* Fixed event `AfterProcessHandle` does not dispatched when throw exception in process.

* Added test cases.
2020-09-24 18:56:15 +08:00
kis龍
56b5103011
Added trace info for WhoopsExceptionHandler. (#2445)
* Whoops exception class returns json format to support trace error details.(#2418)

* Optimized code.

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-24 11:36:22 +08:00
李铭昕
711b692e08
Fixed proxy class generate keyword parent::class but the class scope has on parent. (#2565)
* Fixed proxy class generate keyword `parent::class` but the class scop has on parent.

* Update CHANGELOG-2.0.md
2020-09-22 13:58:02 +08:00
李铭昕
afe7f65a78
Optimized error message when close amqp connection failed (#2561)
* Optimized error message when close amqp connection failed

* Update CHANGELOG-2.0.md
2020-09-22 09:52:21 +08:00
谷溪
9bc9990d90
fix: remove query in namespace (#2559)
* fix: remove query in namespace

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-22 09:38:36 +08:00
李铭昕
e259a59184
v2.0.12 (#2555)
* Update CHANGELOG-2.0.md

* Update

* Update doc and translate

Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-09-21 10:25:38 +08:00
李铭昕
14b759333c Optimized test cases. 2020-09-18 17:45:22 +08:00
weskiller
0eaa14c13f
Fixed @property of mutated attribute will be replaced by morphTo for gen:model. (#2535)
* Fixed gen:model morphTo maybe cover getAttribute Property

* Update ModelUpdateVisitor.php

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-18 09:48:03 +08:00
Aex
221fa54409
Fixed mutated attributes do not work in camel case (#2509)
* CamelCase驼峰模式下,设置访问器 getXxxAttribute , 查询结果 toArray 没有变化

* Added test cases.

* Update

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-17 18:56:19 +08:00
leetaizhu
a05a36d0f9
Added column_type for MySqlGrammar::compileColumnListing. (#2512)
Co-authored-by: leetaizhu <taizhu.li@winekar.net>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-15 14:24:42 +08:00
李铭昕
2852c0a29a
v2.0.11 (#2503)
* v2.0.11

* Translate

* Update changelog.md

Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-09-14 11:02:38 +08:00
谷溪
4bf2d3b239
fix #2491 adjust event sequence to ensure sid is added to room. (#2492)
* fix #2491

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-12 20:30:40 +08:00
李铭昕
1a7786c738 Fixed beginTransaction failed when the pdo is null. 2020-09-11 18:17:16 +08:00
fsl
b1fc0cd595
Fixed Sender::check does not works when the checked fd not belong to websocket. (#2478)
* 修复Hyperf\WebSocketServer\Sender->check($fd)方法如果传入的不是websocket的fd会出现:Notice: Undefined index: websocket_status的问题

* Update Sender.php

* Added test cases.

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-10 14:34:50 +08:00
李铭昕
94fdaddc62
Added throwbale to the end of arguments of fallback for retry component. (#2475)
* Added argument `throwbale`to the end of arguments for fallback.

* Update CHANGELOG-2.0.md

* Update CHANGELOG-2.0.md
2020-09-10 14:03:58 +08:00
李铭昕
7d3d99af34
Optimized the fallback of FallbackRetryPolicy which support class@method (#2471)
Co-authored-by: yansongda <me@yansongda.cn>
2020-09-09 17:05:18 +08:00
李铭昕
ed517bce08
Added optional visitor ModelRewriteGetterSetterVisitor for gen:model. (#2463)
* Added AbstractVisitor.

* Added BetterReflectionManager.

* Support getter and setter.

* Update document.
2020-09-09 14:40:23 +08:00
Nash Gao
582474718c
Optimized the http route observer which you can observe any one not only http (#2461)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-08 18:45:47 +08:00
leetaizhu
897f87edf9
Fixed method fill does not works for camel case model. (#2464)
* Fixed  使用CamelCase驼峰,执行模型批量赋值fill方法时如果key是驼峰同时模型$fillable数组内是蛇形,导致无法批量赋值。

* Update CHANGELOG-2.0.md

Co-authored-by: leetaizhu <taizhu.li@winekar.net>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-08 18:34:42 +08:00
李铭昕
f07ed0d5c4
Added ReloadChannelListener to reload timeout or failed channels automatically. (#2459)
* Added `ReloadChannelListener` to reload timeout or failed channels automatically.

* Added test cases.
2020-09-08 11:35:00 +08:00
谷溪
000664e036
feat: add a method to retrieve psr7 request from socket. (#2455)
Co-authored-by: 沈唁 <52o@qq52o.cn>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-07 17:00:27 +08:00
李铭昕
0c2387591c
Fixed invalid argument supplied for foreach(). (#2452)
* Update InvalidCacheManager.php

* Update CHANGELOG-2.0.md
2020-09-07 13:37:49 +08:00
李铭昕
378a930f7a
v2.0.10 (#2450)
* v2.0.10

Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-09-07 12:55:20 +08:00
沈唁
1a4e62063d
fix: apollo config file name error (#2449)
* fix: apollo config file path error

* Update CHANGELOG-2.0.md
2020-09-07 09:45:40 +08:00
huangzhhui
a4ad2c89f8 Update CHANGELOG-2.0.md 2020-09-07 00:30:13 +08:00
李铭昕
096a82df66
Fixed traceid does not exists when using coroutine handler. (#2443)
Co-authored-by: sy-records <52o@qq52o.cn>
2020-09-06 10:38:20 +08:00
李铭昕
f9f3849848
Added some setters for SocketIO. (#2441)
* Added some setters for SocketIO.

* Update CHANGELOG-2.0.md
2020-09-05 15:05:23 +08:00
李铭昕
e06423f853
Optimized code for deleting model cache when model deleted or saved in transaction. (#2438) 2020-09-05 11:31:19 +08:00
weskiller
30218c6275
Fixed model event dispatcher does not works for Pivot and MorphPivot. (#2427)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-09-04 10:36:02 +08:00
李铭昕
cb6640215f
Optimized error message when does not set the value of @var for @Inject. (#2429) 2020-09-03 18:22:50 +08:00
李铭昕
e919359448
Fixed enable-event-dispatcher does not exists. (#2426)
* Added doc for how to rewrite cast.

* Update CHANGELOG-2.0.md

* Update quick-start.md
2020-09-03 17:27:40 +08:00
李铭昕
677b347813
Added option enable-event-dispatcher to initialize EventDispatcher for command. (#2420)
* Added trait EnableEventDispatcher for command.

* Update CHANGELOG-2.0.md
2020-09-03 11:34:11 +08:00
李铭昕
6bb40b61bf
Added method Hyperf\Database\Query\Builder::forPageBeforeId (#2411) 2020-09-02 16:34:30 +08:00
李铭昕
7cf763717c
v2.0.9 (#2385)
Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-08-31 13:40:33 +08:00
黄朝晖
fcf128a91e
Merge branch 'master' into optimize-grpc-header 2020-08-30 23:42:24 +08:00
huangzhhui
58185a6983 Update CHANGELOG-2.0.md 2020-08-30 23:37:12 +08:00
李铭昕
a43aba8f3e
Added function optional(). (#2384)
* Added optional().

* Update .travis.yml

* Update CHANGELOG-2.0.md
2020-08-30 13:59:53 +08:00
李铭昕
b05eb12e29
Optimized the exception handler which add content-type header automatically by default. (#2373)
* Optimized validation exception handler.

* Added test cases.
2020-08-28 17:38:48 +08:00
李铭昕
3330ee2ce7
Optimized code for watcher. (#2368)
* Optimized code for watcher.

* Update CHANGELOG-2.0.md
2020-08-28 09:54:30 +08:00
李铭昕
c94070b331
Optimized di which is no need to depend on config. (#2363)
* Optimized di which is no need to depend on config.

* Update CHANGELOG-2.0.md
2020-08-27 16:41:22 +08:00
李铭昕
2891c4f485
Optimized process which stop friendly in coroutine server. (#2359)
* Optimized process which stop friendly in coroutine server.

* Optimized code.

* Added document.
2020-08-27 11:43:39 +08:00
Kids Return
5a60792a50
Fixed validation rule digits does not support int. (#2358)
* Fix strict_types=1, digits rule preg_match parameter 2 to be string error

* Fixed validation rule `digits` does not support `int`.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-08-27 11:09:13 +08:00
N
87590fb644
Fixed server:start failed, when the config of pid_file changed. (#2356)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-08-27 10:39:27 +08:00
李铭昕
df60bf3d4f Update CHANGELOG-2.0.md 2020-08-26 17:13:28 +08:00
huangzhhui
5ed2a75a67 Update CHANGELOG-2.0.md 2020-08-24 14:02:42 +08:00
李铭昕
b74d9ebf97 v2.0.8 2020-08-24 11:04:28 +08:00
李铭昕
fee3efca51
Added RedisNsqAdapter which publish message through nsq. (#2336)
* Added RedisNsqAdapter which publish message  through nsq.

* Added changelog.
2020-08-24 10:55:30 +08:00
李铭昕
d923968493
Added method Arr::merge to merge array more friendly than array_merge_recursive. (#2334) 2020-08-24 10:47:25 +08:00
李铭昕
57274860eb
Fixed filesystem does not works when using s3 adapter. (#2338) 2020-08-24 10:23:59 +08:00
huangzhhui
64f87d5eb3 Update CHANGELOG-2.0.md 2020-08-24 00:27:38 +08:00
李铭昕
9aba324eb4
Added Hyperf/Utils/Optional. (#2335) 2020-08-22 13:58:56 +08:00
李铭昕
78a6bf5f1b Revert. 2020-08-21 11:08:26 +08:00
李铭昕
f13686c5c8 Added documents. 2020-08-19 10:54:27 +08:00
李铭昕
f18b03a08f
Optimized the config for nsqd. (#2312)
* Changed config of nsqd.

* Update changelog.md
2020-08-17 14:13:59 +08:00
李铭昕
2a54dc891e
v2.0.7 (#2310) 2020-08-17 11:39:33 +08:00
李铭昕
7f2368cf16
Merge pull request #2309 from huangzhhui/copy-from-2127
Fix JsonRpcHttpTransporter cannot set the custom timeout property
2020-08-17 10:05:53 +08:00
huangzhhui
a618556cc1 Add changelog 2020-08-17 01:41:48 +08:00
huangzhhui
8647f18779 Add changelog 2020-08-17 00:48:32 +08:00
李铭昕
5eb41fb014
Fixed dead cycle when del sid for socketio memory adapter. (#2304)
* Fixed dead cycle when del sid for socketio memory adapter.

* Added test cases.
2020-08-15 13:47:19 +08:00
李铭昕
d98084b696
Fixed bug that the config is cleared when the config is not modified in apollo. (#2276)
* Fix the bug that the configuration is covered because the status code is not 200 when the configuration is not modified in apollo.
2020-08-13 14:09:43 +08:00
李铭昕
e1847e32df
Fixed co::create failed in non-coroutine environment. (#2281) 2020-08-13 10:38:05 +08:00
李铭昕
2c18306439
Fixed bug that interface methods will be rewriten by aop. (#2280)
* Fixed bug that interface methods will be rewriten by aop.

* Update ProxyFactory.php

* Added test case.
2020-08-12 13:29:11 +08:00
李铭昕
6c535bd3dc
Fixed bug that fetch process blocking for config center. (#2275)
* Fixed sync config failed when socket::send timeout.

* Fixed bug that fetch process blocking for config center.
2020-08-12 09:35:27 +08:00
huangzhhui
53db463307 Translate 2020-08-10 13:33:19 +08:00
李铭昕
56b4608916 Update 2020-08-10 10:11:44 +08:00
李铭昕
1bd2446a76
Fixed collect more than once time when using watcher. (#2242) 2020-08-05 11:13:01 +08:00
刀刀
e98318e8a0
Fixed bug that select node failed when using loadBalancer for nacos. (#2236)
* fix: nacos loadBalancer

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-08-03 12:39:40 +08:00
李铭昕
a33635dadd
v2.0.5 (#2234) 2020-08-03 10:11:22 +08:00
李铭昕
ab283efbfb
Optimized eager load when the type is In or InRaw for model-cache. (#2232) 2020-08-02 15:07:15 +08:00
李铭昕
dd1ff1164a
Fixed context won't be destroyed when accept keepalive connection for co server. (#2227) 2020-08-01 11:47:33 +08:00
李铭昕
ff3429e6db
Fixed bug that sender does not works for coroutine server. (#2218)
* Fixed bug that call to undefined method Swoole\Http\Response::disconnect().

* Update CHANGELOG-2.0.md
2020-07-30 18:21:56 +08:00
Zheng
d40c8a4b89
Fixed bug that open event won't be executed after handshake right now. (#2210)
* fix:协程模式onOpen事件触发延迟

* Optimized code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-30 17:50:24 +08:00
Zheng
d73a9e4944
Fixed bug that close event won't be executed when close the connection by websocket server.. (#2214)
* fix:协程模式服务端关闭连接未触发onClose事件

* Optimized code.

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-30 17:39:36 +08:00
baiguiren
c887a4f313
Added $concurrent for function parallel. (#2204)
* 为 parallel 函数添加并发控制参数

* Added test cases.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-29 18:52:08 +08:00
张子彬
862a0a824e
完善FindDriver热更新 (#2193)
* 完善FindDriver热更新

* Update CHANGELOG-2.0.md

Co-authored-by: zhangzibin <zhangzibin@ecomxhat.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-28 17:19:12 +08:00
李铭昕
c224ba6922
v2.0.4 (#2185)
* v2.0.4

* Translate

Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-07-27 15:52:51 +08:00
zxyfaxcn
ee843711b7
Fixed bug that custom processes cannot fetch config from nacos. (#2149)
* 增加支持配置同步更新至用户自定义进程
* 修复心跳namespaceId参数缺少导致nacos心跳至public
* 调整服务、实例创建注册顺序

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-26 14:15:00 +08:00
yansongda
911b73f3fe
Don't record the close message when the server is not websocket server. (#2182)
* fix #2180

* fix typo && remove unnecessary qualifier

* Deleted useless code.

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-26 13:54:45 +08:00
motian
bbf8ae4793
[FEATURE] Added ModelRewriteTimestampsVisitor (#2174)
Added `ModelRewriteTimestampsVisitor` to rewrite `$timestamps` based on `created_at` and `updated_at`

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-24 13:43:43 +08:00
motian
864a9ba2be
Added ModelRewriteSoftDeletesVisitor to insert or remove SoftDeletes based on deleted_at (#2175)
* Added ModelRewriteSoftDeletesVisitor

* Added `ModelRewriteSoftDeletesVisitor` to insert or remove `SoftDeletes` based on `deleted_at` for Model.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-24 13:28:39 +08:00
motian
11e6447886
[FEATURE] Added ModelRewriteKeyNameVisitor (#2176)
Added `ModelRewriteKeyInfoVisitor` to rewrite `$incrementing` `$primaryKey` and `$keyType` for Model.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-24 12:28:31 +08:00
清流
28fa90425d
Update documents. (#2177)
* Update wechat.md

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-24 09:34:50 +08:00
phper666
33b2cc7733
Fixed document for overtrue/wechat. (#1780)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-23 18:16:06 +08:00
Millyn
c954e949c8
Throw an exception when the scanner directories all does not exist. (#2043)
* Optimization when the Scanner directory all does not exist

* Optimized test cases.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-23 17:37:04 +08:00
myweb
3f0d876bf1
Added session.options.domain for hyperf/session to change the domain which get from request. (#2169)
* 支持设置 session domain 参数

* Fixed travis.

* Added test cases.

* Update session.php

* Update CHANGELOG-2.0.md

Co-authored-by: liulian <liulian@leros-MacBook.local>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-23 16:00:00 +08:00
张子彬
9b35d6fd42
Added Hyperf\Watcher\Driver\FindDriver for hyperf/watcher. (#2162)
* Update ShellDriver.php

* Optimized code.

* Support Darwin.

Co-authored-by: zhangzibin <zhangzibin@ecomxhat.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-23 15:09:25 +08:00
沈唁
b4b11bd031
Fixed fatal exception caused by exist file when using gen:migration. (#2159)
* Fixed fatal exception caused by exist file when using `gen:migration`.

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-22 14:06:29 +08:00
谷溪
f657fa0491
feat: attach options to route handler (#2158)
* feat: attach options to route handler

* add CHANGELOG-2.0.md
2020-07-22 13:00:08 +08:00
ninvfeng
ebcefa4c8b
Added filed $result for QueryExecuted. (#2144)
* Add result field to QueryExecuted Event

* Add default value and type hint

* Update QueryExecuted.php

* Added types for result.

* Update Connection.php

* Update changelog.md

Co-authored-by: ninvfeng <ninvfeng@gmail.com>
Co-authored-by: 黄朝晖 <huangzhwork@gmail.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-20 19:37:00 +08:00
李铭昕
3a55665c47
v2.0.3 (#2136) 2020-07-20 15:17:27 +08:00
Reasno
6cf7fe9598 add changelog 2020-07-20 14:10:46 +08:00
李铭昕
d3f14f740c
Fixed bug that ValidationMiddleware will throw exception in websocket. (#2139) 2020-07-20 11:40:32 +08:00
黄朝晖
dee7460d41
Optimized the exception message when the response json encoding failed. (#2129)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-17 19:00:08 +08:00
黄朝晖
72c231290d
Merge pull request #2017 from cwb2819259/fix_promeuthes_redis_colletcor
fix: 修复Prometheus使用redis打点,改变label导致收集报错的问题
2020-07-17 13:42:39 +08:00
黄朝晖
2b9bae8919
Update CHANGELOG-2.0.md 2020-07-17 13:42:21 +08:00
weskiller
35a9782305
Optimized the type of $perPage from int to ?int. (#2080)
* Optimize builder::paginate argument

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-16 17:18:31 +08:00
逍遥
5a677c7b81 docs: 添加CHANGELOG说明 2020-07-16 14:34:41 +08:00
逍遥
6716310075 merge: branch 'master' into fix_promeuthes_redis_colletcor 2020-07-16 14:32:24 +08:00
李铭昕
d75ace0e34
Fixed bug that redis::call will be recorded twice. (#2123)
* Fixed bug that `redis::call` will be recorded twice.

* Update CHANGELOG-2.0.md
2020-07-16 13:41:54 +08:00
李铭昕
d8c175585b
Format code. (#2122) 2020-07-15 17:05:45 +08:00
李铭昕
75b9384996
Fixed @Inject will be useless sometimes when using server:watch. (#2117) 2020-07-15 10:59:36 +08:00
李铭昕
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
李铭昕
90992d6dd1
v2.0.2 (#2099) 2020-07-13 13:21:16 +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
黄朝晖
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
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
沈唁
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
Reasno
5759f59966 chore: update CHANGELOG-2.0.md 2020-07-10 12:26:39 +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
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
逍遥
44915d0ad1 fix: 修复Prometheus打点使用redis存储改变label数量导致报错 2020-07-06 15:07:13 +08:00
逍遥
42b289d1c4 feat: 新增Prometheus打点使用redis存储支持redis集群 2020-07-06 14:55:40 +08:00
李铭昕
9651428dcf Added document. 2020-07-05 15:49:55 +08:00
锅锅锅de1T
c97327c366
Fixed Parser error (#1898)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-04 14:56:21 +08:00
沈唁
12fda742ff
The code of constants only support int and string. (#2031)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-04 13:15:04 +08:00
李铭昕
29bf7fa58e
Fixed hyperf.pid won't be created in coroutine server. (#2051)
* Deleted useless code.

* Fixed hyperf.pid won't be created in coroutine server.
2020-07-04 13:13:17 +08:00
沈唁
ec1976816d
Optimized stdout when server restart (#2049)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-04 12:20:03 +08:00
hanicc
66ce4ae3e6
Added ScanFileDriver to watch file changes (#2042)
Co-authored-by: hanicc <hanicc.qq.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-03 17:29:22 +08:00
ClownFish
05d4cab611
Fixed bug that tcp server running in only one coroutine. (#2037)
Co-authored-by: liuzhiming1 <liuzhiming1@chelun.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-03 10:34:16 +08:00
李铭昕
bb6de1ae60
v2.0.1 (#2015) 2020-07-02 13:38:17 +08:00
李铭昕
acf20132d4
Merge pull request #2002 from limingxinleo/2.0-aop
Support aop in trait.
2020-07-02 09:45:50 +08:00
谷溪
1ab78e8b2c
Fix invalid lazy proxy generation when magic methods are used. (#2026)
* fix: remove magic methods in the lazy proxy.

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-07-02 09:45:02 +08:00
黄朝晖
d43cd96467
Merge pull request #1968 from limingxinleo/2.0-aspects
Fixed aspect does not work when edit in aspects.php
2020-07-02 00:52:40 +08:00
黄朝晖
2af60bcb1c
Update CHANGELOG-2.0.md 2020-07-02 00:52:21 +08:00
李铭昕
9878c2b08f Format code. 2020-07-01 10:24:01 +08:00
李铭昕
357c39cd8f Added test cases. 2020-06-28 17:46:39 +08:00
祇是一支歌
041bf8fa8e
fix: change the binding attribute order in aop trait (#1989) (#1990)
* fix: change the binding attribute order in aop trait (#1989)

before:
The old binding order is parent->trait->current
It causes some properties of current to not be bound
after:
The new binding order is current->trait->parent

* docs(contribute): update pull request url

* Update PropertyHandlerTrait.php

* Removed uesless code.

* Fixed handled property not be handled again by parent class.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-28 15:20:33 +08:00
李铭昕
8206a6a06c Merge branch 'master' into pr/1968 2020-06-27 06:24:30 +08:00
沈唁
059aedf3e6
Changed exit_code 0 to SIGTERM when swoole short name do not set disable. (#1986)
* Add get php path

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-25 10:05:07 +08:00
沈唁
3f35cb60d9
Added command gen:constants. (#1934)
* add gen constants

* update doc

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-25 08:09:16 +08:00
李铭昕
d6ac43509b Added test cases. 2020-06-24 20:39:37 +08:00
Kids Return
e831fe0a93
Fixed bug that migration will be created although class already exists. (#1952)
* Fix same migration file class name

* show gen:migration command description

* Fix test

* Fix test

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-23 16:39:11 +08:00