__construct()
__construct(string $basePath = '', string $suffix = '')
Initializes object
Parameters
string | $basePath | |
string | $suffix |
Config Loader
Constructs Config objects based on an associative array returned from a file.
load(string $path, array $data = array()) : \LiftKit\Config\Config
Constructs Config object based on a file. The file must be a PHP file which returns an associative array, which will initialize the Config object's values.
string | $path | Path to file. Beware that this is not an absolute path if you set the basePath or suffix in the constructor. |
array | $data | An associative array of variables to be injected into the file. |