🗃️ Add priority to queue
This commit is contained in:
parent
7f4f005302
commit
61f9cfb009
7 changed files with 171 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ namespace App\Providers;
|
|||
|
||||
use App\Services\ProcessInput;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Contracts\Queue\Factory as QueueFactoryContract;
|
||||
use App\Queue\DatabaseConnector;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
|
@ -14,7 +16,8 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
$this->app[QueueFactoryContract::class]->extend('database', fn () => new DatabaseConnector($this->app['db']));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue