Commit Graph

50 Commits

Author SHA1 Message Date
李铭昕
2cc73d72cb Merge branch 'master' into merge
# Conflicts:
#	composer.json
2021-01-22 21:41:30 +08:00
江湖大牛
429d317638
Fixed bug that the where bindings will be replaced by not rigorous code. (#3174)
* Fixed bug that the where bindings will be replaced by not rigorous code.

* Assert the binding values for database by default.

* Added test cases.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-22 13:03:40 +08:00
毛自豪
0b0df042ab
Fixed Hyperf\Database\Schema\MySqlBuilder::getColumnListing does not works in MySQL 8.0. (#3165)
* Fixed bug

* Added test cases.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-20 18:17:54 +08:00
李铭昕
70249eb840
Optimized code for ErrorExceptionHandler (#3169)
* Optimized code for ErrorExceptionHandler

* Update CHANGELOG-2.1.md

* Update test.yml
2021-01-20 17:41:26 +08:00
李铭昕
8e550e04cf
v2.1.3 (#3147) 2021-01-18 09:49:08 +08:00
李铭昕
fecdb5034d
Fixed doctrine/dbal does not works. (#3141)
* Fixed doctrine/dbal does not works.

* Fixed by https://github.com/laravel/framework/pull/35236
2021-01-15 17:00:52 +08:00
李铭昕
53c84628c9
Fixed type hint error, when don't set true for PDO::ATTR_PERSISTENT. (#3137)
* Revert #3045

* Fixed type hint error, when don't set `true` for `PDO::ATTR_PERSISTENT`.
2021-01-15 15:18:41 +08:00
江湖大牛
c9a6f5a5ac
Added method ComponentAttributeBag::has() for view-engine. (#3123)
* feat: Add has() method to Hyperf\ViewEngine\Component\ComponentAttributeBag

* docs: update view-engine.md

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-14 12:00:25 +08:00
李铭昕
eab49ac7bf FIxed new chan without capacity does not works in Swow. 2021-01-14 10:20:54 +08:00
李铭昕
49eb5014f3
Fixed bug that the config key of migrations is not correct. (#3118)
* Fixed bug that the config key of migrations is not correct.

* Update CHANGELOG-2.1.md
2021-01-13 10:53:01 +08:00
李铭昕
3b9c4c427e Update CHANGELOG-2.1.md 2021-01-13 10:18:43 +08:00
pandaLIU
6f3351a744
Fixed routes will be replaced by another group when using describe:routes command.
* Fixed routes will be replaced by another group when using `describe:routes` command.

* Updated CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-13 09:46:37 +08:00
李铭昕
17a4e2f52a
Fixed bug that call to a member function getArrayCopy() on null when the parent coroutine context destroyed. (#3106)
* Fixed copy failed when the parent coroutine context destroyed.

* Update CHANGELOG-2.1.md
2021-01-11 19:08:16 +08:00
李铭昕
7139be6a43
v2.1.2 (#3100) 2021-01-11 09:57:22 +08:00
刘志铭
2da93f3af4
Fixed getRealPath does not works in phar. (#3084)
* Fixed `getRealPath` does not works in phar.

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-10 11:37:33 +08:00
pandaLIU
a11748003e
Fixed unexpected behavior for ElasticsearchEngine::getTotalCount() in hyperf/scout. (#3095)
* Fixed unexpected behavior for `ElasticsearchEngine::getTotalCount()` in `hyperf/scout`.

* Format code

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-09 17:44:10 +08:00
李铭昕
ef63719d55
Added test case for checking refcount for aop pipeline. (#3088)
* Added test case for checking refcount for aop pipeline.

* Update
2021-01-08 15:06:04 +08:00
刘志铭
cb86ba1c42
Optimized phar:build for rewriting scan_cacheable. (#3046)
- Optimized `phar:build` for rewriting `scan_cacheable`
- Support option phar-version for `phar:build`


Co-authored-by: liuzhiming1 <liuzhiming1@chelun.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-07 17:12:25 +08:00
李铭昕
a35c7f16c4
Fixed db connection has already been bound to another coroutine when used in defer (#3082)
* Fixed db connection has already been bound to another coroutine when used in defer

* Update CHANGELOG-2.1.md
2021-01-07 16:39:49 +08:00
pandaLIU
390e70839e
Added method ConnectionInterface::run(Closure $closure) for hyperf/db. (#3066)
* Added method `ConnectionInterface::run(Closure $closure)` for `hyperf/db`

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-07 15:50:28 +08:00
李铭昕
a616fdeab9 Fixed extra data saved twice when use save() after increment() with extra. 2021-01-07 14:39:11 +08:00
谷溪
e0533cb7f9
revert: flysystem v2.0 support (#3077)
* revert: flysystem v2.0 support

v2.0 is incompatible with almost all adapters available.

* Update composer.json

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-06 16:01:13 +08:00
李铭昕
462c361c44
v2.1.1 (#3067)
* v2.1.1

* Update
2021-01-04 11:03:02 +08:00
谷溪
cfaf5869ff
feat: improve error handling and support Engine::close protocol. (#3054)
* feat: improve error handling and Support Engine::close protocol.

* Update ConnectionClosedException.php

* Update CHANGELOG-2.1.md

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-01-04 10:32:49 +08:00
李铭昕
b135804ba7
Removed type hint form MysqlConnector::setModes. (#3045)
* Removed type hint form `MysqlConnector::setModes`.

* Update CHANGELOG-2.1.md
2020-12-28 18:11:01 +08:00
李铭昕
f5a1fbb1ed v2.1.0 2020-12-28 11:05:18 +08:00
李铭昕
93ded3bc8a
Added document for how to upgrade to 2.1 (#3037)
* Added document for how to upgrade to 2.1

* Update
2020-12-27 13:34:58 +08:00
李铭昕
2ff91b21f8
Upgraded league/flysystem to ^1.0|^2.0 (#3034) 2020-12-27 10:24:51 +08:00
ushell
39b36eff3f
Optimized code for prometheus which support https not only http. (#3009)
* Optimized code for prometheus which support `https` not only `http`.

* Update composer.json

* Format code.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-12-25 10:11:53 +08:00
李铭昕
4ae92ac453
Added method Model\Collection::columns(). (#3001)
* Added method `Model\Collection::columns()`.

* Update CHANGELOG-2.1.md
2020-12-24 09:58:29 +08:00
李铭昕
276cac2dbb
Added params $depth and $flags for Json::decode and Json::encode. (#3002)
* Added params `$depth` and `$flags` for `Json::decode` and `Json::encode`.

* Added test cases

* Added PHPUnit for Swoole 4.5 and 4.6
2020-12-23 13:42:40 +08:00
李铭昕
c74e5d8368
Don't format decimal to float for command gen:model by default. (#2979)
* Don't format `decimal` to `float` for command `gen:model` by default.

* Update CHANGELOG-2.1.md

* Added test case.
2020-12-16 09:38:41 +08:00
李铭昕
4a01fa1135
Changed the string format for default exception formatter. (#2935) 2020-12-08 10:09:30 +08:00
huangzhhui
600817be72 Move waiter from Utils\Coroutine\Waiter to Utils src 2020-12-07 09:45:54 +08:00
李铭昕
c155ddfab9 Removed useless code. 2020-12-07 09:45:54 +08:00
李铭昕
9fcbdb62f0
Allow setting repeated middlewares. (#2909) 2020-12-02 16:29:54 +08:00
沈唁
ac470e13ee
Upgraded doctrine/dbal to ^3.0 (#2901)
* Upgraded doctrine/dbal to ^3.0

* Update Connector.php

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-12-01 14:55:18 +08:00
李铭昕
b5a9d93f83
Use (string) $body instead of $body->getContents() for getting contents from StreamInterface. (#2871)
because method `getContents()` only returns the remaining contents in a string.
2020-11-25 17:45:43 +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
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
李铭昕
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
李铭昕
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
李铭昕
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
李铭昕
f615185392
Added QueueHandleListener which can record running logs for async-queue. (#2671)
* Added QueueHandleListener for async-queue

* Update Client.php

* update
2020-10-16 15:19:13 +08:00
李铭昕
52d2e2061c
Hyperf\Server\SwooleEvent will be deprecated in v3.0, please use Hyperf\Server\Event instead. (#2668) 2020-10-16 10:14:05 +08:00
李铭昕
ed755443af
Optimized code of coroutine and coordinator to adapt hyperf engine. (#2663) 2020-10-15 19:42:26 +08:00
李铭昕
c598e21466 Support HttpServer for Swow. (#2659) 2020-10-15 11:31:31 +08:00
李铭昕
c87e1ea319
Optimized code. (#2652) 2020-10-14 08:57:43 +08:00
李铭昕
58a21e941d
Create CHANGELOG-2.1.md (#2629)
* Create CHANGELOG-2.1.md

* Update CHANGELOG-2.1.md

* Create del-useless-remotes.sh
2020-10-13 12:47:58 +08:00