mirror of
https://github.com/friendica/friendica
synced 2025-01-23 22:19:47 +00:00
refactor setup container for addons and logger
This commit is contained in:
parent
a2c4585914
commit
8ed5dd3a30
1 changed files with 3 additions and 4 deletions
|
@ -218,10 +218,9 @@ class App
|
||||||
|
|
||||||
public function processDaemon(array $options): void
|
public function processDaemon(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->setupContainerForLogger(LogChannel::DAEMON);
|
||||||
$this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [Logger\Capability\LogChannel::DAEMON]]);
|
|
||||||
|
|
||||||
DI::init($this->container);
|
DI::init($this->container);
|
||||||
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class));
|
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class));
|
||||||
|
|
Loading…
Add table
Reference in a new issue