File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,26 @@ Now `orders` channel will be available in our Messaging System. 
82
82
### Message Channel Configuration
83
83
84
84
``` php
85
- DbalBackedMessageChannelBuilder ::create("orders")
85
+ AmqpBackedMessageChannelBuilder ::create("orders")
86
86
->withAutoDeclare(false) // do not auto declare queue
87
87
->withDefaultTimeToLive(1000) // limit TTL of messages
88
+ ->withDefaultDeliveryDelay(1000) // delay messages by default
89
+ ```
90
+
91
+ ### Customize Queue Name
92
+
93
+ By default the queue name will follow channel name, which in above example will be "orders".\
94
+ However we can use "orders" as reference name in our Application, yet name queue differently:
95
+
96
+ ``` php
97
+ #[ServiceContext]
98
+ public function orderChannel()
99
+ {
100
+ return AmqpBackedMessageChannelBuilder::create(
101
+ channelName: "orders",
102
+ queueName: "crm_orders"
103
+ );
104
+ }
88
105
```
89
106
90
107
## Distributed Publisher and Consumer
You can’t perform that action at this time.
0 commit comments