All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning] (http://semver.org/). For change log format, use [Keep a Changelog] (http://keepachangelog.com/).
- New
file
function to get file contents in configuration
- New method
Config::getOrFail()
- Support of
symfony/yaml
library forYamlAdapter
- Use constants to define encapsulation characters of functions
- Fix tests
- Bump dependency version of
berlioz/helpers
package to 1.2
- Fixed
Config::getArrayCopy()
with no config - Fixed reverse of configs in
Config::getArrayCopy()
- New
YamlAdapter
adapter - Add parameter
$compiled
toConfig::getArrayCopy()
to get the compiled version
- Fixed multiple function calls in a value, or concatenation of function result and string
- Fixed way of merge from multiple configuration file
- New
ConfigInterface::getArrayCopy()
method to have an array representation of configuration - New
ConfigBridgeAdapter
adapter
Config::addConfig()
now only acceptsAdapterInterface
- Fixed null returned value
- Fixed returning type of ConfigFunction to mixed
- Fixed default value returned in
AbstractAdapter
- Allow a string at the configuration parameter in ArrayAdapter, to include a PHP file that returns an array
- 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)
- Refactoring
- Bump compatibility to PHP 8 minimum
- Actions replaced by functions
- Encapsulation of functions
- Functions must be alone in value of configuration key
- Remove usage of
@extends
special key in configuration - Remove merging of configurations, replaced by multiple config objects prioritized
- PHP 8 compatibility
- Fix variable replacement by null with empty string
- New
const
action to get constant value
First version