sb
This commit is contained in:
@@ -6,12 +6,18 @@ namespace App;
|
||||
class Config
|
||||
{
|
||||
public string $assetVersion;
|
||||
public bool $dbAutoInit;
|
||||
public ?string $dbInitScript;
|
||||
public ?string $dbInitCmd;
|
||||
|
||||
public function __construct(
|
||||
public array $db,
|
||||
public bool $dbEnabled = true
|
||||
) {
|
||||
$this->assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : '';
|
||||
$this->dbAutoInit = defined('APP_DB_AUTO_INIT') ? (bool)APP_DB_AUTO_INIT : false;
|
||||
$this->dbInitScript = defined('APP_DB_INIT_SCRIPT') ? (string)APP_DB_INIT_SCRIPT : null;
|
||||
$this->dbInitCmd = defined('APP_DB_INIT_CMD') ? (string)APP_DB_INIT_CMD : null;
|
||||
}
|
||||
|
||||
public function primaryUrl(): string
|
||||
|
||||
Reference in New Issue
Block a user