mirror of
https://github.com/friendica/friendica
synced 2025-01-08 20:04:43 +00:00
Refactor setup Container for Logger
This commit is contained in:
parent
8edca631e6
commit
31deac5117
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ class App
|
||||||
{
|
{
|
||||||
$this->setupContainerForAddons();
|
$this->setupContainerForAddons();
|
||||||
|
|
||||||
$this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]);
|
$this->setupContainerForLogger(LogChannel::WORKER);
|
||||||
|
|
||||||
DI::init($this->container);
|
DI::init($this->container);
|
||||||
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));
|
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));
|
||||||
|
|
Loading…
Reference in a new issue