Skip to content

Releases: BerliozFramework/Config

v2.2.0

26 Jun 10:49
Compare
Choose a tag to compare

Added

  • New file function to get file contents in configuration

v2.1.0

04 Feb 23:35
Compare
Choose a tag to compare

Added

  • New method Config::getOrFail()

v2.0.0

08 Sep 20:42
Compare
Choose a tag to compare

Added

  • Support of symfony/yaml library for YamlAdapter

v2.0.0-beta4

07 Jul 20:21
Compare
Choose a tag to compare
v2.0.0-beta4 Pre-release
Pre-release

Changed

  • Use constants to define encapsulation characters of functions

Fixed

  • Fix tests

v2.0.0-beta3

07 Jun 19:49
Compare
Choose a tag to compare
v2.0.0-beta3 Pre-release
Pre-release

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

14 Apr 20:43
Compare
Choose a tag to compare
v2.0.0-beta2 Pre-release
Pre-release

Added

  • New YamlAdapter adapter
  • Add parameter $compiled to Config::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

07 Apr 16:28
Compare
Choose a tag to compare
v2.0.0-beta1 Pre-release
Pre-release

Added

  • New ConfigInterface::getArrayCopy() method to have an array representation of configuration
  • New ConfigBridgeAdapter adapter

Changed

  • Config::addConfig() now only accepts AdapterInterface

Fixed

  • Fixed null returned value
  • Fixed returning type of ConfigFunction to mixed
  • Fixed default value returned in AbstractAdapter

v2.0.0-alpha2

12 Mar 21:12
Compare
Choose a tag to compare
v2.0.0-alpha2 Pre-release
Pre-release

Changed

  • Allow a string at the configuration parameter in ArrayAdapter, to include a PHP file that returns an array

v2.0.0-alpha1

12 Mar 21:10
Compare
Choose a tag to compare
v2.0.0-alpha1 Pre-release
Pre-release

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

v1.2.0

05 Nov 14:37
Compare
Choose a tag to compare

Added

  • PHP 8 compatibility