New version of DrMVC\Config
class, version number 2 was ignored in order to bring the numbering of all modules to a single standard.
About any issues please report here.
Updates in v3:
- Full rafactoring
Added
- New conseption of static methods in
Config
class- Config::load() - load values from file
- Config::set() - set single value
- Config::get() - get value by name or all available values
- Config::clean() - cleanup config or single value by key
- Alternative is dynamic
ConfigObject
class, fir people who do no like static classes - PHP UnitTests for all these clases
- Exceptions
Removed
- Mandatory presence of a predefined variable APPPATH
- Hard binding to the directory
Configs
, now you can load any file from any place