Skip to content

Commit 1a88f23

Browse files
committed
updated example
1 parent 24f3b08 commit 1a88f23

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

README.md

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,37 @@ After composer update is finished you need to add ServiceProvider to your `provi
2020
now you are able to configure your connections in queue.php:
2121

2222
return array(
23-
24-
'default' => 'rabbitmq',
25-
26-
'connections' => array(
27-
28-
'rabbitmq' => array(
29-
'driver' => 'rabbitmq',
30-
31-
'host' => '',
32-
'port' => '',
33-
34-
'vhost' => '',
35-
'login' => '',
36-
'password' => '',
37-
38-
'queue' => '', // name of the default queue
39-
'exchange_name' => '', // name of the exchange
40-
),
41-
42-
),
43-
23+
24+
'default' => 'rabbitmq',
25+
26+
'connections' => array(
27+
28+
'rabbitmq' => array(
29+
'driver' => 'rabbitmq',
30+
31+
'host' => '',
32+
'port' => '',
33+
34+
'vhost' => '',
35+
'login' => '',
36+
'password' => '',
37+
38+
'queue' => '', // name of the default queue
39+
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,
48+
49+
50+
),
51+
52+
),
53+
4454
);
4555

4656
You can also find these examples in src/examples folder.

0 commit comments

Comments
 (0)