mirror of
https://github.com/flarum/core.git
synced 2025-06-27 21:24:50 +02:00
fix missing import of container for resolving the queue connection from ioc
This commit is contained in:
@ -45,7 +45,7 @@ class QueueServiceProvider extends AbstractServiceProvider
|
||||
// Register a simple connection factory that always returns the same
|
||||
// connection, as that is enough for our purposes.
|
||||
$this->container->singleton(Factory::class, function (Container $container) {
|
||||
return new QueueFactory(function () {
|
||||
return new QueueFactory(function () use ($container) {
|
||||
return $container->make('flarum.queue.connection');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user