Move install check to autoload runtime template

This commit is contained in:
Jack Anderson 2024-06-25 13:23:48 +01:00 committed by Clemente Raposo
parent f0e2129bdf
commit fb8be46256
2 changed files with 15 additions and 7 deletions

View file

@ -4,11 +4,6 @@ use App\Kernel;
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
if (!file_exists('legacy/config.php') && !file_exists('../.installed_checked') && !file_exists('../.curl_check_main_page')){
header('Location: install.php');
return;
}
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool)$context['APP_DEBUG']);
};