From 54b52051a93c864052c1b39142f1a3b950c3dc54 Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Mon, 17 May 2021 21:13:30 +0200 Subject: [PATCH] fix missing import of container for resolving the queue connection from ioc --- framework/core/src/Queue/QueueServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Queue/QueueServiceProvider.php b/framework/core/src/Queue/QueueServiceProvider.php index c46da4f9a..c77bd73f5 100644 --- a/framework/core/src/Queue/QueueServiceProvider.php +++ b/framework/core/src/Queue/QueueServiceProvider.php @@ -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'); }); });