class Loader

Configuration file loader.

Constants

internal INCLUDES_KEY

Methods

array
load($file, $section = null)

Reads configuration from file.

void
save($data, $file)

Save configuration to file.

array
getDependencies()

Returns configuration files.

addAdapter($extension, $adapter)

Registers adapter for given file extension.

Details

at line 41
array load($file, $section = null)

Reads configuration from file.

Parameters

$file
$section

Return Value

array

at line 86
void save($data, $file)

Save configuration to file.

Parameters

$data
$file

Return Value

void

at line 98
array getDependencies()

Returns configuration files.

Return Value

array

at line 110
Loader addAdapter($extension, $adapter)

Registers adapter for given file extension.

Parameters

$extension
$adapter

Return Value

Loader

Traits

SmartObject