mirror of
https://github.com/friendica/friendica
synced 2025-01-08 20:04:43 +00:00
Replace DI::basePath() with BasePath service
This commit is contained in:
parent
caec1ed576
commit
867eba7381
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue