File tree 4 files changed +57
-1
lines changed
4 files changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Features:
22
22
* [ Null] ( docs/transport/null.md ) .
23
23
* [ Symfony bundle] ( https://github.com/php-enqueue/enqueue-dev/blob/master/docs/bundle/quick_tour.md )
24
24
* [ Magento1 extension] ( https://github.com/php-enqueue/enqueue-dev/blob/master/docs/magento/quick_tour.md )
25
+ * [ Laravel extension] ( https://github.com/php-enqueue/enqueue-dev/blob/master/docs/laravel/quick_tour.md )
25
26
* [ Message bus] ( http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html ) support.
26
27
* [ RPC over MQ] ( https://www.rabbitmq.com/tutorials/tutorial-one-php.html ) support.
27
28
* Temporary queues support.
Original file line number Diff line number Diff line change 38
38
- [ Functional testing] ( bundle/functional_testing.md )
39
39
* Async event dispatcher (Symfony)
40
40
- [ Quick tour] ( async_event_dispatcher/quick_tour.md )
41
+ * Laravel
42
+ - [ Quick tour] ( laravel/quick_tour.md )
41
43
* Magento
42
44
- [ Quick tour] ( magento/quick_tour.md )
43
45
- [ Cli commands] ( magento/cli_commands.md )
Original file line number Diff line number Diff line change
1
+ # Laravel Queue. Quick tour.
2
+
3
+ The [ LaravelQueue] ( https://github.com/php-enqueue/laravel-queue ) allows to use [ queue-interop] ( https://github.com/queue-interop/queue-interop ) compatible transports as [ Laravel Queue] ( https://laravel.com/docs/5.4/queues ) .
4
+
5
+ ## Install
6
+
7
+ You have to install ` enqueue/laravel-queue ` packages and one of the [ supported transports] ( https://github.com/php-enqueue/enqueue-dev/tree/master/docs/transport ) .
8
+
9
+ ``` bash
10
+ $ composer require enqueue/larvel-queue enqueue/fs
11
+ ```
12
+
13
+ ## Register service provider
14
+
15
+ ``` php
16
+ <?php
17
+
18
+ // config/app.php
19
+
20
+ return [
21
+ 'providers' => [
22
+ Enqueue\LaravelQueue\EnqueueServiceProvider::class,
23
+ ],
24
+ ];
25
+ ```
26
+
27
+ ## Configure
28
+
29
+ First, you have to configure a transport layer and set one to be default.
30
+
31
+ ``` php
32
+ <?php
33
+
34
+ // config/queue.php
35
+
36
+ return [
37
+ 'connections' => [
38
+ 'interop' => [
39
+ 'driver' => 'interop',
40
+ 'connection_factory_class' => \Enqueue\Fs\FsConnectionFactory::class,
41
+
42
+ // the factory specific options
43
+ 'dsn' => 'file://'.realpath(__DIR__.'/../storage').'/enqueue',
44
+ ],
45
+ ],
46
+ ];
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ Same as standard [ Laravel Queues] ( https://laravel.com/docs/5.4/queues )
52
+
53
+ [ back to index] ( ../index.md )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function boot()
15
15
/** @var QueueManager $manager */
16
16
$ manager = $ this ->app ['queue ' ];
17
17
18
- $ manager ->addConnector ('enqueue ' , function () {
18
+ $ manager ->addConnector ('interop ' , function () {
19
19
return new Connector ();
20
20
});
21
21
}
You can’t perform that action at this time.
0 commit comments