Refactor dynamic App::getMode() to static DI::mode()

This commit is contained in:
nupplaPhil
2019-12-15 23:52:15 +01:00
parent 181529f3df
commit 9cec293ccc
6 changed files with 13 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ class Install extends BaseModule
{
$a = DI::app();
if (!$a->getMode()->isInstall()) {
if (!DI::mode()->isInstall()) {
throw new HTTPException\ForbiddenException();
}