Skip to content

Commit 5ac1541

Browse files
committed
updated readme
1 parent f904e63 commit 5ac1541

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RabbitMQ driver for Laravel
55

66
Require this package in your composer.json and run composer update:
77

8-
"fintech-fab/laravel-queue-rabbitmq": "4.2"
8+
"fintech-fab/laravel-queue-rabbitmq": "4.2-nopecl"
99

1010
or run:
1111

@@ -26,26 +26,30 @@ now you are able to configure your connections in queue.php:
2626
'connections' => [
2727

2828
'rabbitmq' => [
29-
'driver' => 'rabbitmq',
29+
'driver' => 'rabbitmq',
3030

31-
'host' => '',
32-
'port' => '',
31+
'host' => '',
32+
'port' => 5672,
3333

34-
'vhost' => '',
35-
'login' => '',
36-
'password' => '',
34+
'vhost' => '/',
35+
'login' => '',
36+
'password' => '',
3737

38-
'queue' => '', // name of the default queue
38+
'queue' => '', // name of the default queue,
3939

40-
'exchange_name' => '', // name of the exchange
41-
42-
// Type of your exchange
43-
// Can be AMQP_EX_TYPE_DIRECT or AMQP_EX_TYPE_FANOUT
44-
// see documentation for more info
45-
// http://www.rabbitmq.com/tutorials/amqp-concepts.html
46-
'exchange_type' => AMQP_EX_TYPE_DIRECT,
47-
'exchange_flags' => AMQP_DURABLE,
40+
'queue_params' => [
41+
'passive' => false,
42+
'durable' => true,
43+
'exclusive' => false,
44+
'auto_delete' => false,
45+
],
4846

47+
'exchange_params' => [
48+
'type' => 'direct', // more info at http://www.rabbitmq.com/tutorials/amqp-concepts.html
49+
'passive' => false,
50+
'durable' => true, // the exchange will survive server restarts
51+
'auto_delete' => false, // the exchange won't be deleted once the channel is closed.
52+
],
4953

5054
],
5155

src/examples/queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
'driver' => 'rabbitmq',
1616

1717
'host' => '',
18-
'port' => 5672,
18+
'port' => 5672,
1919

20-
'vhost' => '/',
20+
'vhost' => '/',
2121
'login' => '',
2222
'password' => '',
2323

0 commit comments

Comments
 (0)