Commit Graph

5294 Commits

Author SHA1 Message Date
huangzhhui
9d897a656a Optimized 2020-06-18 23:18:27 +08:00
huangzhhui
e66bfef473 Support Coroutine TCP Server 2020-06-18 23:18:17 +08:00
李铭昕
b645a5cce7
Optimized code for phpstan. (#1881) 2020-06-17 14:45:13 +08:00
李铭昕
66e3c1721a
Added method Sender::close(int $fd, bool $reset = null). (#1920) 2020-06-17 13:03:19 +08:00
李铭昕
d8a49b2eb2
Sender support coroutine server. (#1919)
* Sender support coroutine server.

* fixed travis.

* Update OnPipeMessageListener.php

* Update Server.php
2020-06-17 12:12:49 +08:00
黄朝晖
28276b7364
Support WebSocket coroutine server (#1908)
* Support WebSocket coroutine server

* Fixed bugs.

* Fixed bug.

Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-17 10:07:30 +08:00
李铭昕
a52a0b39f4
Deleted useless code. (#1906) 2020-06-14 18:47:50 +08:00
李铭昕
702e624671
Removed config config/server.php. (#1905)
* Removed config `config/server.php`.

* Update CHANGELOG-2.0.md
2020-06-12 14:18:46 +08:00
yansongda
7b11109a54
Keys will be merged when different constants use the same code. (#1896)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-12 12:53:21 +08:00
李铭昕
bd053c377f Merge branch 'master' into 2.0 2020-06-12 12:36:55 +08:00
李铭昕
4ac8e3dac5
Fixed caster decimal does not work. (#1900) 2020-06-11 17:18:10 +08:00
黄朝晖
c7b99aca08
Merge pull request #1885 from huangzhhui/2.0-doc
Adjust the documentation tools
2020-06-11 13:57:48 +08:00
huangzhhui
4f24030e9e Revert the path rule 2020-06-11 13:55:15 +08:00
huangzhhui
80375f904f Do not separate the docs folders by version, use git branch to distinguish the difference versions docs 2020-06-11 13:55:15 +08:00
huangzhhui
8071897cc0 Rename doc folder to docs, and split 1.1 and 2.0 folders to store the difference version documentations, and rename bin/translate.php script to bin/doc-translate, also make doc-translate and md-format to adapte this path changes. 2020-06-11 13:52:29 +08:00
黄朝晖
3ca22c6124
Change default value of keepalive to true, and close_on_desctruct to false (#1889) 2020-06-11 12:45:18 +08:00
李铭昕
3fea704186
Merge pull request #1890 from huangzhhui/response-emmitter
Response emitter
2020-06-11 12:35:11 +08:00
李铭昕
27533ff21a Update CHANGELOG-2.0.md 2020-06-11 12:30:53 +08:00
huangzhhui
f9bbea450e Extract Hyperf\Contract\ResponseEmitterInterface 2020-06-11 12:01:33 +08:00
huangzhhui
411d159880 Merge branch 'response-emmitter' of https://github.com/huangzhhui/hyperf into response-emmitter 2020-06-11 11:59:53 +08:00
huangzhhui
4d15d6214b Add getTrailer() method 2020-06-11 11:58:52 +08:00
李铭昕
853b15d83c Update CHANGELOG-2.0.md 2020-06-11 11:42:13 +08:00
李铭昕
57bd4703c8 Optimized ResponseEmitter. 2020-06-11 11:30:18 +08:00
李铭昕
743af341f6 Merge branch '2.0' into pr/1890 2020-06-11 11:25:52 +08:00
李铭昕
226635362c
Renamed AspectCacher to AspectManager. (#1897) 2020-06-11 10:15:33 +08:00
黄朝晖
745bf1346b
Add describe:aspects command (#1888)
Co-authored-by: 李铭昕 <715557344@qq.com>
2020-06-11 09:56:27 +08:00
李铭昕
0462169ada
Merge pull request #1887 from huangzhhui/issue-385
Add describe:listeners command
2020-06-11 09:46:29 +08:00
黄朝晖
190b68a254
Merge pull request #1891 from huangzhhui/coordinator-manager
Mark CoordinatorManager::get() method as deprecated in v2.0
2020-06-10 17:14:19 +08:00
黄朝晖
aa31ac0943
Merge pull request #1893 from huangzhhui/2.0
Merge master branch into 2.0 branch
2020-06-10 14:10:38 +08:00
huangzhhui
0cc4bf4ff1 Merge remote-tracking branch 'origin/master' into 2.0 2020-06-10 14:06:53 +08:00
黄朝晖
187fd9ce69
Merge pull request #1886 from huangzhhui/issue-1688
Do not to validate the type of AMQP exchange
2020-06-10 14:04:22 +08:00
huangzhhui
41175a7449 Mark CoordinatorManager::get() method as deprecated in v2.0 2020-06-10 13:56:23 +08:00
huangzhhui
2ede0cc404 Use until method instead of get 2020-06-10 13:53:42 +08:00
李铭昕
4c79a1107e
Merge pull request #1884 from huangzhhui/2.0
Allows to run multiple coroutine servers at one process
2020-06-10 12:49:49 +08:00
李铭昕
b0be8e8d02 Format code. 2020-06-10 12:41:17 +08:00
huangzhhui
eab57d8f91 Fix unit test of Response 2020-06-10 12:15:40 +08:00
huangzhhui
33ffb687fa Listening MainCoroutineServerStart event instead of CoroutineServerStart event 2020-06-10 12:10:31 +08:00
huangzhhui
a304157557 Add MainCoroutineServerStart event 2020-06-10 12:10:03 +08:00
huangzhhui
4105fdbd96 Fix unit test of grpc 2020-06-10 11:06:23 +08:00
huangzhhui
56c3fd29c1 Fix error 2020-06-10 00:52:16 +08:00
huangzhhui
83a66f1741 Fix unit test 2020-06-10 00:48:13 +08:00
huangzhhui
64aa8e957e Add getTrailers and withTrailers methods for Response 2020-06-10 00:47:53 +08:00
huangzhhui
d2cb0cf6bd Remove Sendable interface and use ResponseEmitter to emit any PSR-7 response object 2020-06-10 00:09:14 +08:00
huangzhhui
1676f1618b Fix the desc 2020-06-09 23:32:10 +08:00
huangzhhui
8557de951e Add describe:listeners command 2020-06-09 23:03:43 +08:00
huangzhhui
41f3f9bc51 Use ConfigProvider to register the command and remove useless output 2020-06-09 23:03:25 +08:00
huangzhhui
6da6d65a39 Do not to validate the type of amqp exchange 2020-06-09 21:09:46 +08:00
huangzhhui
71b04339a1 Allows to run multiple coroutine servers at one process 2020-06-09 19:21:14 +08:00
huangzhhui
023782ecc6 Allow pass a callbacks array to run() function 2020-06-09 19:20:05 +08:00
huangzhhui
1847f6bed0 parentId receive a coroutine id parameter 2020-06-09 19:19:34 +08:00