Raydium Framework

KernelConfig
in package

Table of Contents

$appHttpHost  : mixed
$appPath  : mixed
$configManager  : mixed
$configsDir  : mixed
$constantsFile  : mixed
$tenantId  : mixed
__construct()  : mixed
getTenantDirectory()  : string|null
setKernelConstants()  : void
setupCorePlugins()  : 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.
isIsolatedTenant()  : bool
getHashedTenantDirectory()  : string
Returns the hashed tenant directory.
tenantIdHash()  : string|null

Properties

Methods

__construct()

public __construct(ConstantBuilder $configManager) : mixed
Parameters
$configManager : ConstantBuilder
Return values
mixed —

getTenantDirectory()

public getTenantDirectory() : string|null
Return values
string|null —

setupCorePlugins()

public setupCorePlugins(Filesystem $filesystem) : void
Parameters
$filesystem : Filesystem
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.

isIsolatedTenant()

protected isIsolatedTenant() : bool
Return values
bool —

getHashedTenantDirectory()

Returns the hashed tenant directory.

private getHashedTenantDirectory() : string

Uses the hashing algorithm defined by tenantIdHash(), defaulting to fnv1a64 if applicable. If no hashing is used, it falls back to the raw tenant ID.

Return values
string —

The directory path for the tenant.

tenantIdHash()

private static tenantIdHash() : string|null
Return values
string|null —

Search results