Skip to content

Commit 599c149

Browse files
authored
Lumen support
1 parent a8175fd commit 599c149

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LaravelQueueCMQServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Freyo\LaravelQueueCMQ\Queue\Connectors\CMQConnector;
66
use Illuminate\Queue\QueueManager;
77
use Illuminate\Support\ServiceProvider;
8+
use Laravel\Lumen\Application as LumenApplication;
89

910
class LaravelQueueCMQServiceProvider extends ServiceProvider
1011
{
@@ -15,6 +16,10 @@ class LaravelQueueCMQServiceProvider extends ServiceProvider
1516
*/
1617
public function register()
1718
{
19+
if ($this->app instanceof LumenApplication) {
20+
$this->app->configure('queue');
21+
}
22+
1823
$this->mergeConfigFrom(
1924
__DIR__.'/../config/cmq.php', 'queue.connections.cmq'
2025
);

0 commit comments

Comments
 (0)