Skip to content

Commit d8bdc30

Browse files
authored
Merge branch 'master' into php74
2 parents f15a7e9 + 8f86cf9 commit d8bdc30

File tree

257 files changed

+1373
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+1373
-1008
lines changed

.travis.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,51 @@ matrix:
88
include:
99
- php: 7.1
1010
sudo: false
11-
env: SYMFONY_VERSION=3.4.* PHPSTAN=true
11+
env: SYMFONY_VERSION=4.3.* PHPSTAN=true
1212
- php: 7.1
1313
sudo: false
14-
env: SYMFONY_VERSION=3.4.* PHP_CS_FIXER=true
14+
env: SYMFONY_VERSION=4.3.* PHP_CS_FIXER=true
1515
- php: 7.1
1616
sudo: false
17-
env: SYMFONY_VERSION=3.4.* UNIT_TESTS=true
18-
- php: 7.1
17+
env: SYMFONY_VERSION=4.3.* UNIT_TESTS=true
18+
- php: 7.2
1919
sudo: false
20-
env: SYMFONY_VERSION=4.0.* UNIT_TESTS=true
20+
env: SYMFONY_VERSION=4.3.* UNIT_TESTS=true
2121
- php: 7.2
2222
sudo: false
23-
env: SYMFONY_VERSION=4.0.* UNIT_TESTS=true
23+
env: SYMFONY_VERSION=5.0.* UNIT_TESTS=true
2424
- php: 7.3
2525
sudo: false
26-
env: SYMFONY_VERSION=4.1.* UNIT_TESTS=true
26+
env: SYMFONY_VERSION=4.3.* UNIT_TESTS=true
2727
- php: 7.3
2828
sudo: false
29-
env: SYMFONY_VERSION=4.2.* UNIT_TESTS=true
29+
env: SYMFONY_VERSION=4.4.* UNIT_TESTS=true
30+
- php: 7.3
31+
sudo: false
32+
env: SYMFONY_VERSION=5.0.* UNIT_TESTS=true
33+
- php: 7.4
34+
sudo: false
35+
env: SYMFONY_VERSION=4.3.* UNIT_TESTS=true
3036
- php: 7.4
3137
sudo: false
32-
env: SYMFONY_VERSION=4.1.* UNIT_TESTS=true
38+
env: SYMFONY_VERSION=4.4.* UNIT_TESTS=true
3339
- php: 7.4
3440
sudo: false
35-
env: SYMFONY_VERSION=4.2.* UNIT_TESTS=true
41+
env: SYMFONY_VERSION=5.0.* UNIT_TESTS=true
3642
- php: 7.1
37-
services: docker
3843
sudo: required
39-
env: SYMFONY_VERSION=3.4.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
40-
- php: 7.1
44+
services: docker
45+
env: SYMFONY_VERSION=4.3.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
46+
- php: 7.3
4147
sudo: required
4248
services: docker
43-
env: SYMFONY_VERSION=4.0.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
49+
env: SYMFONY_VERSION=5.0.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
4450
- php: 7.1
4551
sudo: required
4652
services: docker
47-
env: SYMFONY_VERSION=3.4.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true
53+
env: SYMFONY_VERSION=4.3.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true
4854
allow_failures:
49-
- env: SYMFONY_VERSION=3.4.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true
55+
- env: SYMFONY_VERSION=4.3.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true
5056

5157
cache:
5258
directories:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## [0.10.0](https://github.com/php-enqueue/enqueue-dev/tree/0.10.0) (2019-12-19)
4+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.15...0.10.0)
5+
6+
**Merged pull requests:**
7+
8+
- Symfony 5 [\#997](https://github.com/php-enqueue/enqueue-dev/pull/997) ([kuraobi](https://github.com/kuraobi))
9+
- Replace the Magento 1 code into the Magento 2 documentation [\#999](https://github.com/php-enqueue/enqueue-dev/pull/999) ([hochgenug](https://github.com/hochgenug))
10+
- Wrong parameter description [\#994](https://github.com/php-enqueue/enqueue-dev/pull/994) ([bramstroker](https://github.com/bramstroker))
11+
312
## [0.9.15](https://github.com/php-enqueue/enqueue-dev/tree/0.9.15) (2019-11-28)
413
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.14...0.9.15)
514

composer.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"ext-amqp": "^1.9.3",
1515
"ext-gearman": "^2.0",
16-
"ext-mongodb": "^1.3",
16+
"ext-mongodb": "^1.5",
1717
"ext-rdkafka": "^3.0.3",
1818

1919
"queue-interop/amqp-interop": "^0.8",
@@ -35,14 +35,14 @@
3535
"php-http/client-common": "^1.7@dev",
3636
"richardfullmer/rabbitmq-management-api": "^2.0",
3737
"predis/predis": "^1.1",
38+
"thruway/client": "^0.5.0",
3839
"thruway/pawl-transport": "^0.5.0",
39-
"voryx/thruway": "^0.5.3",
4040
"influxdb/influxdb-php": "^1.14",
4141
"datadog/php-datadogstatsd": "^1.3"
4242
},
4343
"require-dev": {
44-
"phpunit/phpunit": "^5.5",
45-
"phpstan/phpstan": "^0.10",
44+
"phpunit/phpunit": "^7.5",
45+
"phpstan/phpstan": "^0.12",
4646
"queue-interop/queue-spec": "^0.6",
4747
"symfony/browser-kit": "^3.4|^4",
4848
"symfony/config": "^3.4|^4",
@@ -54,9 +54,10 @@
5454
"symfony/http-kernel": "^3.4|^4",
5555
"symfony/filesystem": "^3.4|^4",
5656
"symfony/framework-bundle": "^3.4|^4",
57+
"symfony/yaml": "^4.3|^5",
5758
"empi89/php-amqp-stubs": "*@dev",
58-
"doctrine/doctrine-bundle": "~1.2",
59-
"doctrine/mongodb-odm-bundle": "^3.5",
59+
"doctrine/doctrine-bundle": "~1.2|^2",
60+
"doctrine/mongodb-odm-bundle": "^3.5|^4",
6061
"alcaeus/mongo-php-adapter": "^1.0",
6162
"kwn/php-rdkafka-stubs": "^1.0.2",
6263
"friendsofphp/php-cs-fixer": "^2"
@@ -112,7 +113,7 @@
112113
"ext-amqp": "1.9.3",
113114
"ext-gearman": "2.0.3",
114115
"ext-rdkafka": "3.3",
115-
"ext-mongodb": "1.3",
116+
"ext-mongodb": "1.5",
116117
"ext-bcmath": "1",
117118
"ext-mbstring": "1",
118119
"ext-mongo": "1.6.14"

docker-compose.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,9 @@ services:
117117
- "27017:27017"
118118

119119
thruway:
120-
image: formapro/nginx-php-fpm:latest-all-exts
120+
build: './docker/thruway'
121121
ports:
122122
- '9090:9090'
123-
working_dir: '/app'
124-
volumes:
125-
- './:/app'
126-
entrypoint:
127-
- '/usr/bin/php'
128-
- 'docker/thruway/WsRouter.php'
129123

130124
localstack:
131125
image: 'localstack/localstack:latest'

docker/thruway/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM formapro/nginx-php-fpm:latest-all-exts
2+
3+
RUN mkdir -p /thruway
4+
WORKDIR /thruway
5+
6+
# Thruway router
7+
COPY --from=composer /usr/bin/composer /usr/bin/composer
8+
RUN COMPOSER_HOME=/thruway composer global require --prefer-dist --no-scripts voryx/thruway
9+
10+
COPY WsRouter.php .
11+
12+
CMD ["/usr/bin/php", "WsRouter.php"]
13+

docker/thruway/WsRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require __DIR__.'/../../vendor/autoload.php';
3+
require __DIR__.'/vendor/autoload.php';
44

55
use Thruway\Peer\Router;
66
use Thruway\Transport\RatchetTransportProvider;

docs/bundle/cli_commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Arguments:
6464
message A message
6565
6666
Options:
67-
-c, --client[=CLIENT] The client to consume messages from. [default: "default"]
67+
-c, --client[=CLIENT] The client to send messages to. [default: "default"]
6868
--topic[=TOPIC] The topic to send a message to
6969
--command[=COMMAND] The command to send a message to
7070
-h, --help Display this help message

docs/magento2/quick_tour.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ To consume messages you have to define a processor class first:
6161

6262
namespace Acme\Module\Helper\Async;
6363

64-
use Interop\Queue\Context;
65-
use Interop\Queue\Message;
66-
use Interop\Queue\Processor;
64+
use Interop\Queue\PsrContext;
65+
use Interop\Queue\PsrMessage;
66+
use Interop\Queue\PsrProcessor;
6767

6868
class Foo implements Processor
6969
{
70-
public function process(Message $message, Context $context)
70+
public function process(PsrMessage $message, PsrContext $context)
7171
{
7272
// do job
7373
// $message->getBody() -> 'payload'
@@ -83,15 +83,15 @@ than subscribe it to a topic or several topics:
8383

8484

8585
```xml
86-
<!-- app/etc/local.xml -->
86+
<!-- app/code/Acme/Module/etc/config.xml -->
8787

8888
<config>
8989
<default>
9090
<enqueue>
9191
<processors>
9292
<foo-processor>
9393
<topic>a_topic</topic>
94-
<helper>acme/async_foo</helper>
94+
<helper>Acme\Module\Helper\Async\foo</helper>
9595
</foo-processor>
9696
</processors>
9797
</enqueue>

docs/monitoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ There are available options (and all available metrics):
294294
Install additional packages:
295295

296296
```
297-
composer req thruway/pawl-transport:^0.5.0 voryx/thruway:^0.5.3
297+
composer req thruway/pawl-transport:^0.5.0 thruway/client:^0.5.0
298298
```
299299

300300
```php

docs/transport/wamp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nav_order: 3
1010

1111
A transport for [Web Application Messaging Protocol](https://wamp-proto.org/).
1212
WAMP is an open standard WebSocket subprotocol.
13-
It uses internally Thruway PHP library [voryx/thruway](https://github.com/voryx/Thruway)
13+
It uses internally Thruway PHP library [thruway/client](https://github.com/thruway/client)
1414

1515
* [Installation](#installation)
1616
* [Start the WAMP router](#start-the-wamp-router)
@@ -27,7 +27,10 @@ $ composer require enqueue/wamp
2727

2828
## Start the WAMP router
2929

30+
You can get a WAMP router with [Thruway](https://github.com/voryx/Thruway):
31+
3032
```bash
33+
$ composer require voryx/thruway
3134
$ php vendor/voryx/thruway/Examples/SimpleWsRouter.php
3235
```
3336

0 commit comments

Comments
 (0)