Skip to content

Commit 7f7f14b

Browse files
authored
Merge pull request #269 from php-enqueue/sf4
Add Symfony4 support
2 parents 9ef512d + 7eeaf73 commit 7f7f14b

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"enqueue/null": "^0.8@dev",
2020
"queue-interop/queue-spec": "^0.5.3@dev",
2121
"empi89/php-amqp-stubs": "*@dev",
22-
"symfony/dependency-injection": "^2.8|^3",
23-
"symfony/config": "^2.8|^3"
22+
"symfony/dependency-injection": "^2.8|^3|^4",
23+
"symfony/config": "^2.8|^3|^4"
2424
},
2525
"autoload": {
2626
"psr-4": { "Enqueue\\AmqpExt\\": "" },

examples/consume.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
use Enqueue\AmqpExt\AmqpConnectionFactory;
1919

2020
$config = [
21-
'host' => getenv('SYMFONY__RABBITMQ__HOST'),
22-
'port' => getenv('SYMFONY__RABBITMQ__AMQP__PORT'),
23-
'user' => getenv('SYMFONY__RABBITMQ__USER'),
24-
'pass' => getenv('SYMFONY__RABBITMQ__PASSWORD'),
25-
'vhost' => getenv('SYMFONY__RABBITMQ__VHOST'),
21+
'host' => getenv('RABBITMQ_HOST'),
22+
'port' => getenv('RABBITMQ_AMQP__PORT'),
23+
'user' => getenv('RABBITMQ_USER'),
24+
'pass' => getenv('RABBITMQ_PASSWORD'),
25+
'vhost' => getenv('RABBITMQ_VHOST'),
2626
];
2727

2828
$factory = new AmqpConnectionFactory($config);

examples/produce.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
use Interop\Amqp\Impl\AmqpBind;
2222

2323
$config = [
24-
'host' => getenv('SYMFONY__RABBITMQ__HOST'),
25-
'port' => getenv('SYMFONY__RABBITMQ__AMQP__PORT'),
26-
'user' => getenv('SYMFONY__RABBITMQ__USER'),
27-
'pass' => getenv('SYMFONY__RABBITMQ__PASSWORD'),
28-
'vhost' => getenv('SYMFONY__RABBITMQ__VHOST'),
24+
'host' => getenv('RABBITMQ_HOST'),
25+
'port' => getenv('RABBITMQ_AMQP__PORT'),
26+
'user' => getenv('RABBITMQ_USER'),
27+
'pass' => getenv('RABBITMQ_PASSWORD'),
28+
'vhost' => getenv('RABBITMQ_VHOST'),
2929
];
3030

3131
$factory = new AmqpConnectionFactory($config);

0 commit comments

Comments
 (0)