Skip to content

Commit 237cecc

Browse files
committed
README - example configuration
1 parent a6f49c2 commit 237cecc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Example configuration:
2+
3+
```
4+
services:
5+
- App\Queue\RabbitMq\Consumer\TestConsumer
6+
7+
8+
rabbitmq:
9+
connections:
10+
default:
11+
user: guest
12+
password: guest
13+
host: localhost
14+
port: 5672
15+
16+
queues:
17+
testQueue:
18+
connection: default
19+
20+
exchanges:
21+
testExchange:
22+
type: fanout
23+
queueBindings:
24+
testQueue:
25+
26+
producers:
27+
testProducer:
28+
exchange: testExchange
29+
# queue: testQueue
30+
contentType: application/json
31+
32+
consumers:
33+
testConsumer:
34+
queue: testQueue
35+
callback: [@App\Queue\RabbitMq\Consumer\TestConsumer, consume]
36+
```

0 commit comments

Comments
 (0)