mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
fix missing import of container for resolving the queue connection from ioc
This commit is contained in:
parent
4db6810e40
commit
54b52051a9
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user