Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57a8896

Browse files
committed
Merge remote-tracking branch 'origin/master' into sns
2 parents d9fa5f4 + 532425f commit 57a8896

File tree

168 files changed

+2789
-499
lines changed

Some content is hidden

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

168 files changed

+2789
-499
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ bin/phpstan
88
bin/jp.php
99
bin/php-parse
1010
bin/google-cloud-batch
11+
bin/thruway
1112
vendor
1213
var
1314
.php_cs

CHANGELOG.md

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

3+
## [0.9.7](https://github.com/php-enqueue/enqueue-dev/tree/0.9.7) (2019-02-01)
4+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.6...0.9.7)
5+
6+
**Merged pull requests:**
7+
8+
- Avoid OutOfMemoryException [\#725](https://github.com/php-enqueue/enqueue-dev/pull/725) ([DamienHarper](https://github.com/DamienHarper))
9+
- \[async-event-dispatcher\] Add default to php\_serializer\_event\_transformer [\#748](https://github.com/php-enqueue/enqueue-dev/pull/748) ([GCalmels](https://github.com/GCalmels))
10+
- \[async-event-dispatcher\] Fixed param on EventTransformer [\#736](https://github.com/php-enqueue/enqueue-dev/pull/736) ([samnela](https://github.com/samnela))
11+
- \[job-queue\] Install stable dependencies [\#745](https://github.com/php-enqueue/enqueue-dev/pull/745) ([mbabic131](https://github.com/mbabic131))
12+
- \[job-queue\] Fix job status processor [\#735](https://github.com/php-enqueue/enqueue-dev/pull/735) ([ASKozienko](https://github.com/ASKozienko))
13+
- \[redis\] Fix messages sent with incorrect delivery delay [\#738](https://github.com/php-enqueue/enqueue-dev/pull/738) ([niels-nijens](https://github.com/niels-nijens))
14+
- \[dbal\] Exception on affected record !=1 [\#733](https://github.com/php-enqueue/enqueue-dev/pull/733) ([otzy](https://github.com/otzy))
15+
- \[bundle\]\[dbal\] Use doctrine bundle configured connections [\#732](https://github.com/php-enqueue/enqueue-dev/pull/732) ([ASKozienko](https://github.com/ASKozienko))
16+
- \[pheanstalk\] Add unit tests for PheanstalkConsumer [\#726](https://github.com/php-enqueue/enqueue-dev/pull/726) ([alanpoulain](https://github.com/alanpoulain))
17+
- \[pheanstalk\] Requeuing a message should not acknowledge it beforehand [\#722](https://github.com/php-enqueue/enqueue-dev/pull/722) ([alanpoulain](https://github.com/alanpoulain))
18+
- \[sqs\] Dead Letter Queue Adoption [\#720](https://github.com/php-enqueue/enqueue-dev/pull/720) ([cshum](https://github.com/cshum))
19+
20+
## [0.9.6](https://github.com/php-enqueue/enqueue-dev/tree/0.9.6) (2019-01-09)
21+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.5...0.9.6)
22+
23+
**Merged pull requests:**
24+
25+
- Fix async command/event pkgs [\#717](https://github.com/php-enqueue/enqueue-dev/pull/717) ([GCalmels](https://github.com/GCalmels))
26+
- Use database from config in PRedis driver [\#715](https://github.com/php-enqueue/enqueue-dev/pull/715) ([lalov](https://github.com/lalov))
27+
- \[monitoring\] Add support of Datadog [\#716](https://github.com/php-enqueue/enqueue-dev/pull/716) ([uro](https://github.com/uro))
28+
- \[monitoring\] Fixed influxdb write on sentMessageStats [\#712](https://github.com/php-enqueue/enqueue-dev/pull/712) ([uro](https://github.com/uro))
29+
- \[monitoring\] Add support for minimum stability - stable [\#711](https://github.com/php-enqueue/enqueue-dev/pull/711) ([uro](https://github.com/uro))
30+
- \[consumption\] fix wrong niceness extension param [\#709](https://github.com/php-enqueue/enqueue-dev/pull/709) ([ramunasd](https://github.com/ramunasd))
31+
32+
## [0.9.5](https://github.com/php-enqueue/enqueue-dev/tree/0.9.5) (2018-12-21)
33+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.4...0.9.5)
34+
35+
**Merged pull requests:**
36+
37+
- \[dbal\] Run tests on PostgreSQS [\#705](https://github.com/php-enqueue/enqueue-dev/pull/705) ([makasim](https://github.com/makasim))
38+
- \[dbal\] Use string-based UUIDs instead of binary [\#698](https://github.com/php-enqueue/enqueue-dev/pull/698) ([jverdeyen](https://github.com/jverdeyen))
39+
40+
## [0.9.4](https://github.com/php-enqueue/enqueue-dev/tree/0.9.4) (2018-12-20)
41+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.3...0.9.4)
42+
43+
**Merged pull requests:**
44+
45+
- \[client\] sendToProcessor should able to send message to router processor. [\#703](https://github.com/php-enqueue/enqueue-dev/pull/703) ([makasim](https://github.com/makasim))
46+
- \[client\] Fix SetRouterPropertiesExtension should skip no topic messages. [\#702](https://github.com/php-enqueue/enqueue-dev/pull/702) ([makasim](https://github.com/makasim))
47+
- \[client\] Fix Exclusive Command Extension ignores route queue prefix option. [\#701](https://github.com/php-enqueue/enqueue-dev/pull/701) ([makasim](https://github.com/makasim))
48+
- \[amqp\] fix \#696 parsing vhost from amqp dsn [\#697](https://github.com/php-enqueue/enqueue-dev/pull/697) ([rpanfili](https://github.com/rpanfili))
49+
- \[doc\] Fix link to declare queue [\#699](https://github.com/php-enqueue/enqueue-dev/pull/699) ([samnela](https://github.com/samnela))
50+
51+
## [0.9.3](https://github.com/php-enqueue/enqueue-dev/tree/0.9.3) (2018-12-17)
52+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.2...0.9.3)
53+
54+
**Merged pull requests:**
55+
56+
- Fix async command package [\#694](https://github.com/php-enqueue/enqueue-dev/pull/694) ([makasim](https://github.com/makasim))
57+
- Fix async events package [\#694](https://github.com/php-enqueue/enqueue-dev/pull/694) ([makasim](https://github.com/makasim))
58+
- Add commands for single transport\client with typed arguments. [\#693](https://github.com/php-enqueue/enqueue-dev/pull/693) ([makasim](https://github.com/makasim))
59+
- Fix TreeBuilder in Symfony 4.2 [\#692](https://github.com/php-enqueue/enqueue-dev/pull/692) ([angelsk](https://github.com/angelsk))
60+
- [doc] update docs [\#689](https://github.com/php-enqueue/enqueue-dev/pull/689) ([OskarStark](https://github.com/OskarStark))
61+
62+
## [0.9.2](https://github.com/php-enqueue/enqueue-dev/tree/0.9.2) (2018-12-13)
63+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.1...0.9.2)
64+
65+
**Merged pull requests:**
66+
67+
- Allow 0.8.x Queue Interop \(without deprecated Psr prefixed interfaces\) [\#688](https://github.com/php-enqueue/enqueue-dev/pull/688) ([makasim](https://github.com/makasim))
68+
- \[dsn\] remove commented out code [\#661](https://github.com/php-enqueue/enqueue-dev/pull/661) ([kunicmarko20](https://github.com/kunicmarko20))
69+
- \[fs\]: fix: Wrong parameters for Exception [\#678](https://github.com/php-enqueue/enqueue-dev/pull/678) ([ssiergl](https://github.com/ssiergl))
70+
- \[fs\] Do not throw error in jsonUnserialize on deprecation notice [\#671](https://github.com/php-enqueue/enqueue-dev/pull/671) ([ssiergl](https://github.com/ssiergl))
71+
- \[mongodb\] polling\_integer type not correctly handled when using DSN [\#673](https://github.com/php-enqueue/enqueue-dev/pull/673) ([jak](https://github.com/jak))
72+
- \[dbal\] Use ordered bytes time uuid codec on message id decode. [\#665](https://github.com/php-enqueue/enqueue-dev/pull/665) ([makasim](https://github.com/makasim))
73+
- \[dbal\] fix: Wrong parameters for Exception [\#676](https://github.com/php-enqueue/enqueue-dev/pull/676) ([Nommyde](https://github.com/Nommyde))
74+
- \[sqs\] Add ability to use another aws account per queue. [\#666](https://github.com/php-enqueue/enqueue-dev/pull/666) ([makasim](https://github.com/makasim))
75+
- \[sqs\] Multi region support [\#664](https://github.com/php-enqueue/enqueue-dev/pull/664) ([makasim](https://github.com/makasim))
76+
- \[sqs\] Use a queue created in another AWS account. [\#662](https://github.com/php-enqueue/enqueue-dev/pull/662) ([makasim](https://github.com/makasim))
77+
- \[job-queue\] Fix tests on newer dbal versions. [\#687](https://github.com/php-enqueue/enqueue-dev/pull/687) ([makasim](https://github.com/makasim))
78+
- [doc] typo [\#686](https://github.com/php-enqueue/enqueue-dev/pull/686) ([OskarStark](https://github.com/OskarStark))
79+
- [doc] typo [\#683](https://github.com/php-enqueue/enqueue-dev/pull/683) ([OskarStark](https://github.com/OskarStark))
80+
- [doc] Fix package name for redis [\#680](https://github.com/php-enqueue/enqueue-dev/pull/680) ([gnumoksha](https://github.com/gnumoksha))
81+
382
## [0.9.1](https://github.com/php-enqueue/enqueue-dev/tree/0.9.1) (2018-11-27)
483
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.9.0...0.9.1)
584

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Features:
9090
[![Build Status](https://travis-ci.org/php-enqueue/null.png?branch=master)](https://travis-ci.org/php-enqueue/null)
9191
[![Total Downloads](https://poser.pugx.org/enqueue/null/d/total.png)](https://packagist.org/packages/enqueue/null/stats)
9292
[![Latest Stable Version](https://poser.pugx.org/enqueue/null/version.png)](https://packagist.org/packages/enqueue/null)
93-
* [the others are comming](https://github.com/php-enqueue/enqueue-dev/issues/284)
93+
* [the others are coming](https://github.com/php-enqueue/enqueue-dev/issues/284)
9494
* [Symfony bundle](docs/bundle/quick_tour.md)
9595
* [Magento1 extension](docs/magento/quick_tour.md)
9696
* [Magento2 module](docs/magento2/quick_tour.md)

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"ext-rdkafka": "^3.0.3",
1313

1414
"queue-interop/amqp-interop": "^0.8",
15-
"queue-interop/queue-interop": "^0.7",
15+
"queue-interop/queue-interop": "^0.7|^0.8",
1616
"bunny/bunny": "^0.2.4|^0.3|^0.4",
1717
"php-amqplib/php-amqplib": "^2.7",
1818
"doctrine/dbal": "^2.6",
@@ -33,7 +33,8 @@
3333
"predis/predis": "^1.1",
3434
"thruway/pawl-transport": "^0.5.0",
3535
"voryx/thruway": "^0.5.3",
36-
"influxdb/influxdb-php": "^1.14"
36+
"influxdb/influxdb-php": "^1.14",
37+
"datadog/php-datadogstatsd": "^1.3"
3738
},
3839
"require-dev": {
3940
"phpunit/phpunit": "^5.5",

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
depends_on:
77
- rabbitmq
88
- mysql
9+
- postgres
910
- redis
1011
- beanstalkd
1112
- gearmand
@@ -26,7 +27,9 @@ services:
2627
- RABITMQ_STOMP_DSN=stomp+rabbitmq://guest:guest@rabbitmq:61613/mqdev
2728
- RABBITMQ_MANAGMENT_DSN=http://guest:guest@rabbitmq:15672/mqdev
2829
- DOCTRINE_DSN=mysql://root:rootpass@mysql/mqdev
30+
- DOCTRINE_POSTGRES_DSN=postgres://postgres:pass@postgres/template1
2931
- MYSQL_DSN=mysql://root:rootpass@mysql/mqdev
32+
- POSTGRES_DSN=postgres://postgres:pass@postgres/postgres
3033
- PREDIS_DSN=redis+predis://redis
3134
- PHPREDIS_DSN=redis+phpredis://redis
3235
- GPS_DSN=gps:?projectId=mqdev&emulatorHost=http://google-pubsub:8085
@@ -79,6 +82,11 @@ services:
7982
MYSQL_ROOT_PASSWORD: rootpass
8083
MYSQL_DATABASE: mqdev
8184

85+
postgres:
86+
image: postgres
87+
environment:
88+
POSTGRES_PASSWORD: pass
89+
8290
generate-changelog:
8391
image: enqueue/generate-changelog:latest
8492
# build: { context: docker, dockerfile: Dockerfile.generate-changelog }

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM formapro/nginx-php-fpm:latest-all-exts
33
## libs
44
RUN set -x && \
55
apt-get update && \
6-
apt-get install -y --no-install-recommends --no-install-suggests wget curl openssl ca-certificates nano netcat php-dev php-redis git python
6+
apt-get install -y --no-install-recommends --no-install-suggests wget curl openssl ca-certificates nano netcat php-dev php-redis php-pgsql git python
77

88
RUN set -x && \
99
apt-get update && \
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
use Enqueue\Dbal\DbalConnectionFactory;
4+
5+
require_once getcwd().'/vendor/autoload.php';
6+
7+
$dsn = getenv('DOCTRINE_POSTGRES_DSN');
8+
9+
$dbalContext = (new DbalConnectionFactory($dsn))->createContext();
10+
11+
$dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase('postgres');
12+
$dbalContext->createDataBaseTable();
13+
14+
echo 'Postgresql Database is updated'.PHP_EOL;

docker/bin/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ trap "FORCE_EXIT=true" SIGTERM SIGINT
3232
waitForService rabbitmq 5672 50
3333
waitForService rabbitmqssl 5671 50
3434
waitForService mysql 3306 50
35+
waitForService postgres 5432 50
3536
waitForService redis 6379 50
3637
waitForService beanstalkd 11300 50
3738
waitForService gearmand 4730 50
@@ -40,9 +41,10 @@ waitForService mongo 27017 50
4041
waitForService thruway 9090 50
4142
waitForService localstack 4576 50
4243

43-
php docker/bin/refresh-mysql-database.php
44-
php pkg/job-queue/Tests/Functional/app/console doctrine:database:create --if-not-exists
45-
php pkg/job-queue/Tests/Functional/app/console doctrine:schema:update --force
44+
php docker/bin/refresh-mysql-database.php || exit 1
45+
php docker/bin/refresh-postgres-database.php || exit 1
46+
php pkg/job-queue/Tests/Functional/app/console doctrine:database:create --if-not-exists || exit 1
47+
php pkg/job-queue/Tests/Functional/app/console doctrine:schema:update --force || exit 1
4648

4749
#php pkg/enqueue-bundle/Tests/Functional/app/console.php config:dump-reference enqueue
4850
bin/phpunit "$@"

0 commit comments

Comments
 (0)