From bb911296a6e042d5b513cde1f1fc18df0fa1dc62 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 14:08:40 +0000 Subject: [PATCH] require dice rules --- bin/worker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/worker.php b/bin/worker.php index c0b990fd23..684a5d8076 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -30,7 +30,8 @@ chdir(dirname(__DIR__)); require dirname(__DIR__) . '/vendor/autoload.php'; -$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php'); +$dice = (new Dice())->addRules(require(dirname(__DIR__) . '/static/dependencies.config.php')); + /** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */ $addonLoader = $dice->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class); $dice = $dice->addRules($addonLoader->getActiveAddonConfig('dependencies'));