rebuild to module
This commit is contained in:
@@ -9,15 +9,23 @@ class Config
|
||||
public bool $dbAutoInit;
|
||||
public ?string $dbInitScript;
|
||||
public ?string $dbInitCmd;
|
||||
public string $keaDbVersion;
|
||||
public array $baseDb;
|
||||
public bool $baseDbEnabled;
|
||||
|
||||
public function __construct(
|
||||
public array $db,
|
||||
public bool $dbEnabled = true
|
||||
public bool $dbEnabled = true,
|
||||
array $baseDb = [],
|
||||
bool $baseDbEnabled = false
|
||||
) {
|
||||
$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;
|
||||
$this->keaDbVersion = defined('APP_KEA_DB_VERSION') ? (string)APP_KEA_DB_VERSION : '';
|
||||
$this->baseDb = $baseDb;
|
||||
$this->baseDbEnabled = $baseDbEnabled;
|
||||
}
|
||||
|
||||
public function primaryUrl(): string
|
||||
|
||||
Reference in New Issue
Block a user