class Loader extends Object

Configuration file loader.

Constants

internal INCLUDES_KEY

Properties

array read-only $dependencies

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 76
void save($data, $file)

Save configuration to file.

Parameters

$data
$file

Return Value

void

at line 88
array getDependencies()

Returns configuration files.

Return Value

array

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

Registers adapter for given file extension.

Parameters

$extension
$adapter

Return Value

Loader