mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 11:03:37 +08:00
Alias 'flarum.queue.connection' to Queue contract
This commit is contained in:
parent
6c96c932e0
commit
a0ace316e8
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user