All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.4.12 - 2019-10-16
- Correct invalid Composer configuration.
- Add Composer lock file to .gitignore.
0.4.11 - 2019-10-16
- Added JSON loader. Props @pascalknecht
- Fixed docblocks for PHP & JSON loader
canLoad()
methods. - Adapted docblock for
LoaderInterface::load()
method.
0.4.10 - 2017-02-16
- Fix Coveralls integration.
0.4.9 - 2017-02-16
- Added several checks that can be run through Composer scripts.
- Added Travis CI configuration.
0.4.8 - 2016-08-06
- Added
ConfigTrait::getConfigCallable()
to get a callable and immmediately execute it to get the resultant value. - Added corresponding unit test.
0.4.7 - 2016-07-22
- Fixed the way arrays were merged recursively.
- Added regression test.
0.4.6 - 2016-07-22
- Added
ConfigFactory::merge()
to merge several Config files into one. - Added corresponding unit test.
0.4.5 - 2016-07-05
- Added
ConfigFactory::createSubConfig()
to quickly create a new config at a sublevel. - Added corresponding unit test.
0.4.4 - 2016-07-05
- Extracted the cache retrieval in
ConfigFactory
into its own method.
0.4.3 - 2016-07-05
- Added file caching to CreateFactory.
- Added unit tests to make sure the caching works.
0.4.2 - 2016-06-09
- Added trait functionality to load a default config file.
- Added corresponding entry in the README.md file.
0.4.1 - 2016-06-08
- Removed
beberlei/assert
and all assert checks for now, until a better replacement has been found.
0.4.0 - 2016-04-28
- Added extensible loader framework that includes
PHPLoader
and can be extended by other packages.
- Changed the extensions that are being thrown to more specific ones. They types are extensions of the ones that were previously used, but some exception messages have changed.
- Generic
Config
class now uses the loader framework instead of reading the data on its own.
0.3.1 - 2016-04-05
- Update Composer dependencies.
0.3.0 - 2016-04-04
- Added
ConfigFactory
.
- Changed licensing from GPL2 to MIT.
0.2.8 - 2016-03-28
- Bumped PHP Composter PHPCS PSR-2 version.
0.2.7 - 2016-03-28
- Switched from a custom
pre-commit
script to the PHP Composter PHPCS PSR-2 package.
0.2.6 - 2016-03-22
- Switch
beberlei/assert
back to official branch. Issue #138 has been fixed with v2.5.
0.2.5 - 2016-03-04
- Switch
beberlei/assert
to own fork until #138 has been fixed.
0.2.4 - 2016-02-26
- Better documentation in
README.md
.
- Corrected type hints for variadic methods.
0.2.3 - 2016-02-19
- Remove test cases that were not needed anymore due to the addition of the
$_
argument in v0.2.2. - Remove const array for truthy values and replace by local variable, to avoid PHP5.6+ requirement.
0.2.2 - 2016-02-18
- Add dummy variables in methods with a variable number of arguments to fix PHPStorm inspections.
- Fix case in
reduceToSubKey()
method.
0.2.1 - 2016-02-18
- Bumped version requirement for
brightnucleus/exceptions
to v0.2+.
0.2.0 - 2016-02-17
- Added
getSubConfig()
to extract the subtree at a specific level & key. - Added corresponding tests.
0.1.12 - 2016-02-17
- Updated
brightnucleus/exceptions
dependency.
0.1.11 - 2016-02-17
- Lowered version requirement for
symfony/options-resolver
.
0.1.10 - 2016-02-16
- Added
brightnucleus/exceptions
to have coherentexceptions across all Bright Nucleus packages.
0.1.9 - 2016-02-16
- The
beberlei/assert
package has been added as a development dependency. - Several assertions have been added to check the arguments passed in to the methods.
- A
pre-commit
hook has been added to run unit tests and validate code standards.
- Methods have been rearranged.
- A few code style tweaks have been made to adhere to PHPCS PSR-2.
0.1.8 - 2016-02-11
- The
ConfigTrait::processConfig()
method now accepts one or more additional parameters (can be delimited strings) to start with a Config at a specific level. Useful to include differentvendor\package
levels in a single merged Config file.
0.1.7 - 2016-02-11
- The
hasKey()
method doesn't throw an exception, returnsfalse
instead.
0.1.6 - 2016-02-11
- The
has*
&get*
methods now support keys with delimiters. The delimiters are set via the Config constructor. - Tests for the above.
0.1.5 - 2016-02-11
ConfigTrait::hasConfigKey()
andConfigTrait::getConfigKey()
now support a list of strings to fetch a value from several levels deep.- Tests for the above.
0.1.4 - 2016-02-11
AbstractConfig:getAll()
andConfigTrait::getConfigArray()
.hasKey()
andgetKey()
now support a list of strings to fetch a value from several levels deep.- Tests for the above.
- PHP requirement for unit tests was lowered from 5.6 to 5.4.
0.1.3 - 2016-02-10
- Badges in README.md
- Update Composer to use PHPUnit 4 to reduce PHP version requirements.
- Fix several minor code quality issues.
0.1.2 - 2016-02-01
- ConfigTrait.
- Tests for ConfigTrait.
0.1.1 - 2016-01-29
- Tests for schema requirements.
- Don't instantiate
OptionsResolver
if not needed. - Formatting tweaks
0.1.0 - 2016-01-29
- Initial release to GitHub.