class Loader extends Object

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 37
array load($file, $section = NULL)

Reads configuration from file.

Parameters

$file
$section

Return Value

array

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

Save configuration to file.

Parameters

$data
$file

Return Value

void

at line 84
array getDependencies()

Returns configuration files.

Return Value

array

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

Registers adapter for given file extension.

Parameters

$extension
$adapter

Return Value

Loader