]> git.mxchange.org Git - friendica.git/commitdiff
Refactor App::setupContainerForRunningFrontend()
authorArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 15:28:57 +0000 (15:28 +0000)
committerArt4 <art4@wlabs.de>
Mon, 23 Dec 2024 15:28:57 +0000 (15:28 +0000)
src/App.php

index e3a9ac093675ced126788887050ae9b18a7233a3..d8f28b89bae9b4b0c0b6a39238ea83f038b7932a 100644 (file)
@@ -158,12 +158,17 @@ class App
        {
                /** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */
                $addonLoader = $this->container->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class);
+
                $this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies'));
-               $this->container = $this->container->addRule(\Friendica\App\Mode::class, ['call' => [['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL]]]);
+               $this->container = $this->container->addRule(Mode::class, [
+                       'call' => [
+                               ['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
+                       ],
+               ]);
 
                \Friendica\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(LoggerInterface::class));
        }
 
        /**