use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Friendica\Core\Logger\Capability\LogChannel;
+use Friendica\Core\Logger\Handler\ErrorHandler;
use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues;
use Friendica\Core\System;
use Friendica\Core\Update;
$this->setupContainerForAddons();
- $this->container->setup(LogChannel::APP, false);
+ $this->container->setup(LogChannel::APP);
+
+ $this->registerErrorHandler();
$this->requestId = $this->container->create(Request::class)->getRequestId();
$this->auth = $this->container->create(Authentication::class);
{
$this->setupContainerForAddons();
+ $this->registerErrorHandler();
+
$this->registerTemplateEngine();
(\Friendica\Core\Console::create($this->container, $argv))->execute();
{
$this->setupContainerForAddons();
- $this->container->setup(LogChannel::AUTH_JABBERED, false);
+ $this->container->setup(LogChannel::AUTH_JABBERED);
- $this->registerTemplateEngine();
+ $this->registerErrorHandler();
/** @var BasePath */
$basePath = $this->container->create(BasePath::class);
}
}
+ private function registerErrorHandler(): void
+ {
+ ErrorHandler::register($this->container->create(LoggerInterface::class));
+ }
+
private function registerTemplateEngine(): void
{
Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
use Dice\Dice;
use Friendica\Core\Logger\Capability\LogChannel;
-use Friendica\Core\Logger\Handler\ErrorHandler;
use Friendica\DI;
use Psr\Log\LoggerInterface;
{
$this->setupContainerForLogger($logChannel);
$this->setupLegacyServiceLocator();
- $this->registerErrorHandler();
}
/**
{
DI::init($this->container);
}
-
- private function registerErrorHandler(): void
- {
- ErrorHandler::register($this->container->create(LoggerInterface::class));
- }
}