From c9970fcc247af737be819154397de97b3a835a2f Mon Sep 17 00:00:00 2001 From: aynsix Date: Tue, 12 May 2020 18:16:45 +0300 Subject: [PATCH] fix provider --- lib/Alchemy/Phrasea/Application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index 95e4c19605..4d0d2ab2d5 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -270,8 +270,10 @@ class Application extends SilexApplication $this->register(new OrderServiceProvider()); $this->register(new WebhookServiceProvider()); - $this->register(new QueueWorkerServiceProvider()); - $this->register(new AlchemyWorkerServiceProvider()); + if ($this['configuration.store']->isSetup()) { + $this->register(new QueueWorkerServiceProvider()); + $this->register(new AlchemyWorkerServiceProvider()); + } $this['monolog'] = $this->share( $this->extend('monolog', function (LoggerInterface $logger, Application $app) {