From 8edca631e6e2527bf43be4ad2cfd1203bb48a13f Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 19:11:21 +0000 Subject: [PATCH] Refactor setup Container for addons --- src/App.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.php b/src/App.php index fc42ca2b1a..38408e897f 100644 --- a/src/App.php +++ b/src/App.php @@ -436,9 +436,7 @@ class App public function processWorker(array $options): void { - /** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */ - $addonLoader = $this->container->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class); - $this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies')); + $this->setupContainerForAddons(); $this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]);