Config
Less than 1 minute
Config
Properties
overridePaths
public array $overridePathsinstances
private array $instancesMethods
__construct
protected __construct(?string $sourceFile, ?string $env, ?array $defaults): voidParameters
| Parameter | Type | Description |
|---|---|---|
$sourceFile | string | |
$env | string | |
$defaults | array |
getInstance
public getInstance(?string $sourceFile, ?string $env, ?array $defaults): ConfigThe 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 Tue, 30 Sep 2025 00:01:36 +0000