Skip to content

Commit ada1cd4

Browse files
committed
[doc][skip ci] update laravel doc.
1 parent 564826c commit ada1cd4

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docs/laravel/queues.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@ You have to add a connector to `config/queues.php` file. The driver must be `int
1313
// config/queue.php
1414

1515
return [
16-
// uncomment to set it as default
17-
// 'default' => env('QUEUE_DRIVER', 'interop'),
18-
16+
'default' => 'interop',
1917
'connections' => [
2018
'interop' => [
2119
'driver' => 'interop',
22-
'connection_factory_class' => \Enqueue\Fs\FsConnectionFactory::class,
23-
24-
// the factory specific options
25-
'dsn' => 'file://'.storage_path('enqueue'),
20+
'dsn' => 'amqp+rabbitmq://guest:guest@localhost:5672/%2f',
2621
],
2722
],
2823
];
2924
```
3025

26+
Here's a [full list](../transport) of supported transports.
27+
3128
## Usage
3229

3330
Same as standard [Laravel Queues](https://laravel.com/docs/5.4/queues)
@@ -50,11 +47,6 @@ $ php artisan queue:work interop
5047

5148
## Amqp interop
5249

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 transport](https://github.com/queue-interop/queue-interop#compatible-projects-1), for example `enqueue/amqp-bunny`.
56-
Here's how it could be configured:
57-
5850
```php
5951
<?php
6052

@@ -66,11 +58,10 @@ return [
6658

6759
'connections' => [
6860
'interop' => [
69-
'driver' => 'amqp_interop',
70-
'connection_factory_class' => \Enqueue\AmqpBunny\AmqpConnectionFactory::class,
61+
'driver' => 'interop',
7162

7263
// connects to localhost
73-
'dsn' => 'amqp:',
64+
'dsn' => 'amqp:', //
7465

7566
// could be "rabbitmq_dlx", "rabbitmq_delay_plugin", instance of DelayStrategy interface or null
7667
// 'delay_strategy' => 'rabbitmq_dlx'

0 commit comments

Comments
 (0)