]> git.mxchange.org Git - friendica.git/commitdiff
Extract register error handler into separate method
authorArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 15:30:42 +0000 (15:30 +0000)
committerArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 15:30:42 +0000 (15:30 +0000)
src/App.php

index d8f28b89bae9b4b0c0b6a39238ea83f038b7932a..2c236390d1e164a799a6520bca187bf4cd0ad646 100644 (file)
@@ -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));
        }