Skip to content

Commit 7b6a9cb

Browse files
committed
[doc][laravel] add a amqp config
1 parent 7891f06 commit 7b6a9cb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/laravel/queues.md

+28
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,32 @@ Consume messages:
4848
$ php artisan queue:work interop
4949
```
5050

51+
## Amqp interop
52+
53+
While interop connector can send\consume messages from any queue interop compatible transports.
54+
But it does not support some AMQP specific features, such as queue declaration and delays.
55+
To cover those cases the package provides a AmqpQueue. It can work with any amqp interop [compatible trnasport](https://github.com/queue-interop/queue-interop#compatible-projects-1), for example `enqueue/amqp-bunny`.
56+
Here's how it could be configured:
57+
58+
```php
59+
<?php
60+
61+
// config/queue.php
62+
63+
return [
64+
// uncomment to set it as default
65+
// 'default' => env('QUEUE_DRIVER', 'interop'),
66+
67+
'connections' => [
68+
'interop' => [
69+
'driver' => 'amqp_interop',
70+
'connection_factory_class' => \Enqueue\AmqpBunny\AmqpConnectionFactory::class,
71+
72+
// connects to localhost
73+
'dsn' => 'amqp://',
74+
],
75+
],
76+
];
77+
```
78+
5179
[back to index](../index.md)

0 commit comments

Comments
 (0)