Class ConfigLoader
Configuration file loader.
-
Object
-
ConfigLoader
Methods summary
public
array
|
#
load( string $file, string $section = NULL )
Reads configuration from file.
Reads configuration from file.
Parameters
- $file
string file name
- $section
string optional section to load
Returns
array
|
public
|
#
save( array $data, string $file )
Save configuration to file.
Save configuration to file.
Parameters
- $data
array
- $file
string file
|
public
array
|
#
getDependencies( )
Returns configuration files.
Returns configuration files.
Returns
array
|
public
ConfigLoader
|
#
addAdapter( string $extension, string|IConfigAdapter $adapter )
Registers adapter for given file extension.
Registers adapter for given file extension.
Parameters
Returns
|