mirror of
https://github.com/friendica/friendica
synced 2025-01-23 22:19:47 +00:00
Replace DI::mode() with container
This commit is contained in:
parent
cb5a1daa40
commit
502d0d1b53
1 changed files with 5 additions and 2 deletions
|
@ -226,11 +226,14 @@ class App
|
||||||
|
|
||||||
$this->registerErrorHandler();
|
$this->registerErrorHandler();
|
||||||
|
|
||||||
if (DI::mode()->isInstall()) {
|
/** @var Mode */
|
||||||
|
$mode = $this->container->create(Mode::class);
|
||||||
|
|
||||||
|
if ($mode->isInstall()) {
|
||||||
die("Friendica isn't properly installed yet.\n");
|
die("Friendica isn't properly installed yet.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
DI::mode()->setExecutor(Mode::DAEMON);
|
$mode->setExecutor(Mode::DAEMON);
|
||||||
|
|
||||||
DI::config()->reload();
|
DI::config()->reload();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue