Refactor setup Container for addons

This commit is contained in:
Art4 2024-12-26 19:11:21 +00:00
parent c5d7f26a8c
commit 8edca631e6

View 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]]);