From 7d10d047686dad9f184d452fac45d86b6fee88ad Mon Sep 17 00:00:00 2001 From: Art4 Date: Mon, 23 Dec 2024 15:30:42 +0000 Subject: [PATCH] Extract register error handler into separate method --- src/App.php | 5 +++++ 1 file changed, 5 insertions(+) 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)); }