KernelConfig
in package
Table of Contents
- $appHttpHost : mixed
- $appPath : mixed
- $configFilename : mixed
- $configManager : mixed
- $configs : mixed
- $configsDir : mixed
- $tenantId : mixed
- __construct() : mixed
- getConfig() : mixed
- setKernelConstants() : void
- configurationOverrides() : static
- Determines the configuration file to use based on the application's mode and tenant ID.
- envTenantId() : string|null
- getDefaultConfigFile() : null|string
- Gets the default configuration file, preferring the one in the configs directory.
- getTenantConfigFile() : null|string
- Attempts to get the tenant-specific configuration file if multi-tenant mode is active.
Properties
$appHttpHost
private
mixed
$appHttpHost
$appPath
private
mixed
$appPath
$configFilename
private
mixed
$configFilename
$configManager
private
mixed
$configManager
$configs
private
mixed
$configs
$configsDir
private
mixed
$configsDir
$tenantId
private
mixed
$tenantId
Methods
__construct()
public
__construct(ConstantBuilder $configManager) : mixed
Parameters
- $configManager : ConstantBuilder
Return values
mixed —getConfig()
public
getConfig() : mixed
Return values
mixed —setKernelConstants()
public
setKernelConstants() : void
Return values
void —configurationOverrides()
Determines the configuration file to use based on the application's mode and tenant ID.
protected
configurationOverrides() : static
Falls back to the default configuration if no tenant-specific configuration is found.
Return values
static —envTenantId()
protected
static envTenantId() : string|null
Return values
string|null —getDefaultConfigFile()
Gets the default configuration file, preferring the one in the configs directory.
protected
getDefaultConfigFile() : null|string
Return values
null|string —Path to the default configuration file.
getTenantConfigFile()
Attempts to get the tenant-specific configuration file if multi-tenant mode is active.
protected
getTenantConfigFile() : null|string
Return values
null|string —Path to the tenant-specific configuration file or null if not found/applicable.