From: Art4 Date: Thu, 26 Dec 2024 19:17:18 +0000 (+0000) Subject: Replace DI::basePath() with BasePath service X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=867eba73814a1db97396dfe98977544f3663d9b8;p=friendica.git Replace DI::basePath() with BasePath service --- diff --git a/src/App.php b/src/App.php index 79ad712392..f37e38e677 100644 --- a/src/App.php +++ b/src/App.php @@ -449,8 +449,11 @@ class App $mode->setExecutor(Mode::WORKER); + /** @var BasePath */ + $basePath = $this->container->create(BasePath::class); + // Check the database structure and possibly fixes it - Update::check(DI::basePath(), true); + Update::check($basePath->getPath(), true); // Quit when in maintenance if (!$mode->has(Mode::MAINTENANCEDISABLED)) {