Commit Graph

206 Commits

Author SHA1 Message Date
djunny
f0a8d72d36
Added method getCacheTTL for CacheableInterface which can control cache time each models. (#2682)
Co-authored-by: dj <github@djunny.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-21 10:02:30 +08:00
李铭昕
864f500eab
v2.0.15 (#2679) 2020-10-19 15:08:13 +08:00
Nash Gao
6b5b36ce21
Optimized the response when parse parameters failed for json-rpc. (#2656)
* add try catch for parseParameters method in order to return valid error response to rpc client

* let parseParameter catch \InvalidArugmentException

* let parseParameter catch \InvalidArugmentException

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-15 12:05:56 +08:00
李铭昕
cbf6ae79bc
Added method Hyperf\Utils\Resource::from which can convert string to resource. (#2654)
* Added `Hyperf\Utils\Resource::resourceFor`.
2020-10-13 21:15:07 +08:00
李铭昕
d8a721ffa9
Fixed undefined method unsearchable for scout:flush. (#2643)
* Fixed scout:flush does not works.

* Update CHANGELOG-2.0.md
2020-10-12 20:02:57 +08:00
李铭昕
84e19f78de
Fixed bug that RedisSecondMetaGenerator will generate the same meta. (#2640)
* Fixed bug that `RedisSecondMetaGenerator` will generate the same meta.

* Update RedisMetaGenerator.php

* Update CHANGELOG-2.0.md
2020-10-12 19:03:31 +08:00
李铭昕
044d827d2a
Fixed bug that RedisSecondMetaGenerator will generate the same meta. (#2634)
* Update RedisSecondMetaGenerator.php

* Update RedisMetaGeneratorTest.php

* Update CHANGELOG-2.0.md
2020-10-12 17:10:52 +08:00
李铭昕
9c0a2af77d
Fixed exception will not be normalized for json-rpc. (#2639)
* Fixed exception will not be normalized for json-rpc.

* Update CHANGELOG-2.0.md
2020-10-12 16:00:58 +08:00
谷溪
eb1fb28e33
fix: broken interface binding in retry annotation (#2637)
* fix: broken interface binding in retry annotation

 Di interface bindings are not available at the time of annotation parsing.

* Update Retry.php

* changelog

* test: fix test bindings

* Update RetryAnnotationAspectTest.php

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-12 14:13:50 +08:00
沈唁
3768a08ab3
fix redis config replace error (#2635)
* fix redis config error

* update

* update

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-12 12:02:08 +08:00
李铭昕
13d0fb58cc
v2.0.14 (#2631)
* v2.0.14

* Update translation

Co-authored-by: huangzhhui <huangzhwork@gmail.com>
2020-10-12 10:40:47 +08:00
李铭昕
38d12e4e5d
Fixed http client does not works when using guzzle 7.0 and curl hook for hyperf/testing. (#2624)
* Update HttpClient.php

* Create HttpClientTest.php

* Update HttpClientTest.php

* Update CHANGELOG-2.0.md
2020-10-10 17:22:32 +08:00
李铭昕
ad1fd279d5 Update changelog. 2020-10-04 18:59:05 +08:00
谷溪
5e70bad389
fix: fix memory leak in RetryAnnotationAspect (#2607)
* fix: fix memory leak in RetryAnnotationAspect

* Update CHANGELOG-2.0.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-10-03 07:11:33 +08:00
李铭昕
6a96fbaccb Fixed documents. 2020-10-02 10:24:19 +08:00
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