]> git.mxchange.org Git - friendica.git/commitdiff
inline App::setupContainerForRunningFrontend() method
authorArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 21:27:08 +0000 (21:27 +0000)
committerArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 21:27:08 +0000 (21:27 +0000)
src/App.php

index 691bab75eba756f56e52fe581ceb373b1158d916..ecfaec370cfda4c23e45c49f34a90d4d9fc9acee 100644 (file)
@@ -123,7 +123,15 @@ class App
 
        public function processRequest(ServerRequestInterface $request, float $start_time): void
        {
-               $this->setupContainerForRunningFrontend($request);
+               $this->setupContainerForAddons();
+
+               $this->container = $this->container->addRule(Mode::class, [
+                       'call' => [
+                               ['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
+                       ],
+               ]);
+
+               $this->setupLegacyServerLocator();
 
                $this->registerErrorHandler();
 
@@ -182,19 +190,6 @@ class App
                }
        }
 
-       private function setupContainerForRunningFrontend(ServerRequestInterface $request): void
-       {
-               $this->setupContainerForAddons();
-
-               $this->container = $this->container->addRule(Mode::class, [
-                       'call' => [
-                               ['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
-                       ],
-               ]);
-
-               $this->setupLegacyServerLocator();
-       }
-
        private function setupContainerForAddons(): void
        {
                /** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */