From: Art4 Date: Mon, 23 Dec 2024 15:30:42 +0000 (+0000) Subject: Extract register error handler into separate method X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d10d047686dad9f184d452fac45d86b6fee88ad;p=friendica.git Extract register error handler into separate method --- diff --git a/src/App.php b/src/App.php index d8f28b89ba..2c236390d1 100644 --- a/src/App.php +++ b/src/App.php @@ -123,6 +123,8 @@ class App { $this->setupContainerForRunningFrontend($request); + $this->registerErrorHandler(); + $this->requestId = $this->container->create(Request::class)->getRequestId(); $this->auth = $this->container->create(Authentication::class); $this->config = $this->container->create(IManageConfigValues::class); @@ -167,7 +169,10 @@ class App ]); \Friendica\DI::init($this->container); + } + private function registerErrorHandler(): void + { \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class)); }