]> git.mxchange.org Git - friendica.git/commitdiff
Refactor setup Container for addons
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:11:21 +0000 (19:11 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:11:21 +0000 (19:11 +0000)
src/App.php

index fc42ca2b1a2a514de15ccd94d561035b38420d68..38408e897feda898d692c6e397e8730bcbf75c3e 100644 (file)
@@ -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]]);