class Loader

Configuration file loader.

Constants

private IncludesKey

Methods

array
load(string $file, bool|null $merge = true)

Reads configuration from file.

void
save(array $data, string $file)

Save configuration to file.

array
getDependencies()

Returns configuration files.

string
expandIncludedFile(string $includedFile, string $mainFile)

Expands included file name.

addAdapter(string $extension, string|Adapter $adapter)

Registers adapter for given file extension.

setParameters(array $params)

No description

Details

at line 40
array load(string $file, bool|null $merge = true)

Reads configuration from file.

Parameters

string $file
bool|null $merge

Return Value

array

at line 80
void save(array $data, string $file)

Save configuration to file.

Parameters

array $data
string $file

Return Value

void

at line 91
array getDependencies()

Returns configuration files.

Return Value

array

at line 100
string expandIncludedFile(string $includedFile, string $mainFile)

Expands included file name.

Parameters

string $includedFile
string $mainFile

Return Value

string

at line 113
Loader addAdapter(string $extension, string|Adapter $adapter)

Registers adapter for given file extension.

Parameters

string $extension
string|Adapter $adapter

Return Value

Loader

at line 134
Loader setParameters(array $params)

No description

Parameters

array $params

Return Value

Loader

Traits

SmartObject