Releases: PHLAK/Config
Releases · PHLAK/Config
v8.0.0
v7.0.0
Added
- Added a
ConfigInterface
which theConfig
class now impliments - Added
Config::unset()
method
Changed
Config::createFromDirectory()
constructor renamed toConfig::fromDirectory()
- Exceptions now extend a base
ConfigException
class - Various internal improvements
- Updated dependencies
Detailed changelog: 6.1.0...7.0.0
6.1.0
Added
- Added
Config::createFromDirectory()
constructor for creating a new Config from a directory with prefixed entries by file - Added
Config::append()
method - Added
Config::prepend()
method
Detailed changelog: 6.0.0...6.1.0
v6.0.0
5.0.0
Changed
- Minimum supported PHP version is now 7.0
- The Config object now implements
IteratorAggregate
so it can be iterated over Config::merge()
now optionally accepts a second parameter to control overriding items
Detailed changelog: 4.0.0...5.0.0
4.0.0
Added
Confg::__construct()
andConfig::load()
now accept an optional$prefix
parameter. When set the new or loaded config will be nested in a config item with the value of$prefix
as the key.- Added
Config::toArray()
for returning the entire configuration object as an array
Changed
Config::get()
no longer allows the$key
parameter to be null
Removed
- Removed the ability to access config variables via PHP object notation (e.g.
$config->database->driver
) since it required configuration items be re-cast to Config objects
Fixed
- Fixed possible issue when loading multi-dimensial config files
Detailed changelog: 3.0.1...4.0.0
3.0.1
Changed
- Updated dependency requirements to work with
symfony/yaml
v4
Detailed changelog: 3.0.0...3.0.1
3.0.0
Added
- Added an exception message to
InvalidFileException
when thrown
Changed
- Re-namespaced library to
PHLAK\Config
Detailed changelog: 2.0.0...3.0.0