cactus's avatar
Level 15

How do I unregister the default queue service provider in Lumen

In Laravel if you want to register a custom queue service provider you just comment the default service provider in config\app.php and add your own service provider like this

/*
 * commented so that we can use our own QueueServiceProvider check 'CustomQueueServiceProvider'
*/
        //Illuminate\Queue\QueueServiceProvider::class,
/* Our own Queue Service provider */
        App\Providers\Queue\CustomQueueServiceProvider::class,

Somehow in Lumen on bootstrap\app.php I have used $app->register(); method to register my new Queue service provider but soemhow Lumen just picks the default Queue Service provider and ignores mine.

Can anyone help me in this direction as to how we can unregister the default QueueServiceProvider? or is there any other way to add a custom queue implementation in Lumen?

0 likes
0 replies

Please or to participate in this conversation.