From 867eba73814a1db97396dfe98977544f3663d9b8 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 19:17:18 +0000 Subject: [PATCH] Replace DI::basePath() with BasePath service --- src/App.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) {