From 7d15fb87b7e42de1ea1b14652fdcb2b1b143f37f Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Sat, 5 Oct 2019 16:14:27 -0400 Subject: [PATCH] Alias 'flarum.queue.connection' to Queue contract --- framework/core/src/Queue/QueueServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/core/src/Queue/QueueServiceProvider.php b/framework/core/src/Queue/QueueServiceProvider.php index 18ec1cb81..56c0b12e2 100644 --- a/framework/core/src/Queue/QueueServiceProvider.php +++ b/framework/core/src/Queue/QueueServiceProvider.php @@ -15,6 +15,7 @@ use Flarum\Console\Event\Configuring; use Flarum\Foundation\AbstractServiceProvider; use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandling; use Illuminate\Contracts\Queue\Factory; +use Illuminate\Contracts\Queue\Queue; use Illuminate\Queue\Connectors\ConnectorInterface; use Illuminate\Queue\Console as Commands; use Illuminate\Queue\Failed\NullFailedJobProvider; @@ -90,6 +91,8 @@ class QueueServiceProvider extends AbstractServiceProvider return new NullFailedJobProvider(); }); + $this->app->alias('flarum.queue.connection', Queue::class); + $this->app->alias(ConnectorInterface::class, 'queue.connection'); $this->app->alias(Factory::class, 'queue'); $this->app->alias(Worker::class, 'queue.worker');