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) {