Skip to content

Commit f6ad086

Browse files
committed
added queue config and service provider.
1 parent 20a0edc commit f6ad086

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

app/config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
'Illuminate\Database\MigrationServiceProvider',
9898
'Illuminate\Pagination\PaginationServiceProvider',
9999
'Illuminate\Foundation\Providers\PublisherServiceProvider',
100+
'Illuminate\Queue\QueueServiceProvider',
100101
'Illuminate\Redis\RedisServiceProvider',
101102
'Illuminate\Database\SeedServiceProvider',
102103
'Illuminate\Foundation\Providers\ServerServiceProvider',

app/config/queue.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Queue Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| The Laravel queue API supports a variety of back-ends via an unified
11+
| API, giving you convenient access to each back-end using the same
12+
| syntax for each one. Here you may set the default queue driver.
13+
|
14+
| Supported: "sync", "beanstalkd"
15+
|
16+
*/
17+
18+
'default' => 'sync',
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Queue Connections
23+
|--------------------------------------------------------------------------
24+
|
25+
| Here you may configure the connection information for each server that
26+
| is used by your application. A default configuration has been added
27+
| for each back-end shipped with Laravel. You are free to add more.
28+
|
29+
*/
30+
31+
'connections' => array(
32+
33+
'sync' => array(
34+
'driver' => 'sync',
35+
),
36+
37+
'beanstalkd' => array(
38+
'driver' => 'beanstalkd',
39+
'host' => 'localhost',
40+
'queue' => 'default',
41+
),
42+
43+
),
44+
45+
);

0 commit comments

Comments
 (0)