Replace DI::basePath() with BasePath service

This commit is contained in:
Art4 2024-12-26 19:17:18 +00:00
parent caec1ed576
commit 867eba7381

View file

@ -449,8 +449,11 @@ class App
$mode->setExecutor(Mode::WORKER); $mode->setExecutor(Mode::WORKER);
/** @var BasePath */
$basePath = $this->container->create(BasePath::class);
// Check the database structure and possibly fixes it // Check the database structure and possibly fixes it
Update::check(DI::basePath(), true); Update::check($basePath->getPath(), true);
// Quit when in maintenance // Quit when in maintenance
if (!$mode->has(Mode::MAINTENANCEDISABLED)) { if (!$mode->has(Mode::MAINTENANCEDISABLED)) {