CLI update apply db patches

This commit is contained in:
2021-04-09 12:37:24 +02:00
parent c863a9083e
commit a18b35f784
3 changed files with 69 additions and 28 deletions

View File

@@ -12,6 +12,9 @@ spl_autoload_register(function($class) {
}
});
function is_cli(): bool {
return php_sapi_name() === "cli";
}
function getProtocol(): string {
$isSecure = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||