From ee5b21068258488ea39a23719ee71657d285af63 Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 20 Dec 2024 10:05:13 +0000 Subject: [PATCH] Inline mode call into App::processRequest() --- index.php | 2 -- src/App.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index d98b6db73a..66b5f224ad 100644 --- a/index.php +++ b/index.php @@ -31,8 +31,6 @@ $a = \Friendica\App::fromDice($dice); $a->processRequest(); -\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX); - $a->runFrontend( $dice->create(\Friendica\App\Router::class), $dice->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class), diff --git a/src/App.php b/src/App.php index 04520db2fe..b151f78b39 100644 --- a/src/App.php +++ b/src/App.php @@ -160,6 +160,8 @@ class App $this->container->create(DbaDefinition::class), $this->container->create(ViewDefinition::class), ); + + $this->mode->setExecutor(Mode::INDEX); } /**