mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 11:07:58 +08:00
fix missing import of container for resolving the queue connection from ioc
This commit is contained in:
parent
e855c49824
commit
be7581c432
@ -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…
x
Reference in New Issue
Block a user