mirror of
https://github.com/flarum/core.git
synced 2025-07-09 19:06:23 +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
|
// Register a simple connection factory that always returns the same
|
||||||
// connection, as that is enough for our purposes.
|
// connection, as that is enough for our purposes.
|
||||||
$this->container->singleton(Factory::class, function (Container $container) {
|
$this->container->singleton(Factory::class, function (Container $container) {
|
||||||
return new QueueFactory(function () {
|
return new QueueFactory(function () use ($container) {
|
||||||
return $container->make('flarum.queue.connection');
|
return $container->make('flarum.queue.connection');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user