mirror of
https://github.com/friendica/friendica
synced 2025-01-08 20:04:43 +00:00
Refactor setup Container for addons
This commit is contained in:
parent
c5d7f26a8c
commit
8edca631e6
1 changed files with 1 additions and 3 deletions
|
@ -436,9 +436,7 @@ class App
|
||||||
|
|
||||||
public function processWorker(array $options): void
|
public function processWorker(array $options): void
|
||||||
{
|
{
|
||||||
/** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */
|
$this->setupContainerForAddons();
|
||||||
$addonLoader = $this->container->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class);
|
|
||||||
$this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies'));
|
|
||||||
|
|
||||||
$this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]);
|
$this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue