Class NConfigLoader
Configuration file loader.
-
NObject
-
NConfigLoader
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
NConfigLoader
|
#
addAdapter( string $extension, string|IConfigAdapter $adapter )
Registers adapter for given file extension.
Registers adapter for given file extension.
Parameters
Returns
|