]> git.mxchange.org Git - friendica.git/commitdiff
Replace DI::basePath() with BasePath service
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:17:18 +0000 (19:17 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:17:18 +0000 (19:17 +0000)
src/App.php

index 79ad712392f756575a3b51246b884da2ac3d0ea6..f37e38e6776046ab845c109f71b7180b929f4427 100644 (file)
@@ -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)) {