Commit Graph

5826 Commits

Author SHA1 Message Date
李铭昕
1a7786c738 Fixed beginTransaction failed when the pdo is null. 2020-09-11 18:17:16 +08:00
闵新青
3be6a16f00 修复当开启事务时,连接永远不可用的情况 2020-09-11 17:44:58 +08:00
沈唁
bc875b51bb
fix title (#2481) 2020-09-11 10:33:53 +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
沈唁
4fc2077659
Update swoole tracker (#2479)
* Update docs

* fix typo
2020-09-10 14:02:25 +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
李铭昕
60561b2b39
Format code. (#2469) 2020-09-09 15:45:27 +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
李铭昕
efc637a4a5
Added auto release. (#2457) 2020-09-07 18:26:15 +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
谷溪
567ebaa1fd
doc: Add docs about fetching request object in socket.io callback. (#2454) 2020-09-07 15:38:17 +08:00
ninvfeng
8a5e422a97
Fixed typo (#2453) 2020-09-07 14:44:11 +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
黄朝晖
323aa592f4
Merge pull request #2433 from nfangxu/grpc-server
feat: Grpc Server 支持匿名函数的路由定义
2020-09-07 00:30:31 +08:00
huangzhhui
a4ad2c89f8 Update CHANGELOG-2.0.md 2020-09-07 00:30:13 +08:00
huangzhhui
5dd61d4995 Merge remote-tracking branch 'upstream/master' into pr/2433 2020-09-07 00:28:32 +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
nfangxu
0555714c3e feat: Grpc Server 支持匿名函数的路由定义 2020-09-04 11:29:24 +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
李铭昕
2f6596d2e2
Fixed example for class_map. (#2400) 2020-09-01 09:56:35 +08:00
李铭昕
83fe1c7ed5
Added auto release. (#2390)
* Update changelog.md

* Added auto release.
2020-08-31 14:51:22 +08:00
李铭昕
7cf763717c
v2.0.9 (#2385)
Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-08-31 13:40:33 +08:00
黄朝晖
5438c0e559
Merge pull request #2377 from huangzhhui/optimize-grpc-header
Add ts header for gRPC request of client
2020-08-30 23:42:39 +08:00
黄朝晖
fcf128a91e
Merge branch 'master' into optimize-grpc-header 2020-08-30 23:42:24 +08:00
huangzhhui
d4552f2532 Merge branch 'optimize-grpc-header' of https://github.com/huangzhhui/hyperf into optimize-grpc-header 2020-08-30 23:37:18 +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
李铭昕
7a24dd1282 Fixed travis. 2020-08-30 09:10:01 +08:00
huangzhhui
db2a18d7b0 Follow the commit 42d99d44b6ccf08c1cf1aa15a4f6052dc3211331 of swoole 2020-08-28 19:39:06 +08:00
Fangx
200fd22cd5
Update document (#2372)
* fix: 更新文档示例代码

* Update quick-start.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-08-28 18:13:38 +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
李铭昕
fbca1773a0
Optimized the tag of @method. (#2371)
* Optimized the tag of `@method`.

* Update Router.php
2020-08-28 15:04:19 +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
李铭昕
339ecd9e2e
Merge pull request #2331 from tw2066/master
Optimized Nacos component.
2020-08-26 17:19:49 +08:00