Releases: BerliozFramework/Config
Releases · BerliozFramework/Config
v2.2.0
v2.1.0
v2.0.0
v2.0.0-beta4
Changed
- Use constants to define encapsulation characters of functions
Fixed
- Fix tests
v2.0.0-beta3
Changed
- Bump dependency version of
berlioz/helpers
package to 1.2
Fixed
- Fixed
Config::getArrayCopy()
with no config - Fixed reverse of configs in
Config::getArrayCopy()
v2.0.0-beta2
Added
- New
YamlAdapter
adapter - Add parameter
$compiled
toConfig::getArrayCopy()
to get the compiled version
Fixed
- Fixed multiple function calls in a value, or concatenation of function result and string
- Fixed way of merge from multiple configuration file
v2.0.0-beta1
Added
- New
ConfigInterface::getArrayCopy()
method to have an array representation of configuration - New
ConfigBridgeAdapter
adapter
Changed
Config::addConfig()
now only acceptsAdapterInterface
Fixed
- Fixed null returned value
- Fixed returning type of ConfigFunction to mixed
- Fixed default value returned in
AbstractAdapter
v2.0.0-alpha2
Changed
- Allow a string at the configuration parameter in ArrayAdapter, to include a PHP file that returns an array
v2.0.0-alpha1
Added
- Adapter concept
- Config object to manage adapters
- Dependency with
colinodell/json5
library to parse JSON5 syntax - New adapter IniAdapter (INI string and files)
- New adapter ArrayAdapter (PHP array)
Changed
- Refactoring
- Bump compatibility to PHP 8 minimum
- Actions replaced by functions
- Encapsulation of functions
- Functions must be alone in value of configuration key
Removed
- Remove usage of
@extends
spacial key in configuration - Remove merging of configurations, replaced by multiple config objects prioritized