Config
Less than 1 minute
Config
Properties
overridePaths
public array $overridePaths
instances
private array $instances
Methods
__construct
protected __construct(?string $sourceFile, ?string $env, ?array $defaults): void
Parameters
Parameter | Type | Description |
---|---|---|
$sourceFile | string | |
$env | string | |
$defaults | array |
getInstance
public getInstance(?string $sourceFile, ?string $env, ?array $defaults): Config
The application configuration constructor loads the settings from the configuration file specified in the first parameter. It will use the second parameter as the starting point and is intended to allow different operating environments to be configured from a single configuration file.
Parameters
Parameter | Type | Description |
---|---|---|
$sourceFile | string | The absolute path to the config file |
$env | string | The application environment to read settings for. Usually development or production . |
$defaults | array | initial defaut values |
Generated by Hazaar API Doc Generator on Wed, 14 May 2025 04:57:24 +0000