Releases: sandrokeil/interop-config
Releases · sandrokeil/interop-config
Interop Config 2.2.0
2.2.0 (2020-09-05)
Added
- PHP 8 support
Deprecated
- Nothing
Removed
- Nothing
Fixed
- Nothing
Interop Config 2.1.0
Interop Config 2.0.1
This release contains no BC break.
Added
- More test cases for iterable return type and
\Iterator
objects
Deprecated
- Nothing
Removed
- Nothing
Fixed
- #34: Inconsistent return type in
defaultOptions()
defaultOptions()
method return type isiterable
butarray
is still valid
Interop Config 2.0.0
To upgrade from version 1.x to version 2.x you have to add the PHP scalar types of the interfaces to your implemented factory methods.
Added
- #33: PHP 7.1 language features (return types, scalar type hints)
dimensions()
method return type isiterable
canRetrieveOptions()
method return type isbool
mandatoryOptions()
method return type isiterable
defaultOptions()
method return type isarray
- Minor performance improvements
- More test cases
Deprecated
- Nothing
Removed
- PHP < 7.1 support
Fixed
- Nothing
Interop Config 1.0.0
This release contains BC breaks, but upgrade path is simple.
Added
- #26:
dimensions()
method toRequiresConfig
to make configuration depth flexible
Deprecated
- Nothing
Removed
-
#26:
vendorName()
andpackageName()
method fromRequiresConfig
, replaced bydimensions()
method- It's recommended to remove the methods and use the values directly in
dimensions()
to increase performance
public function dimensions() { return [$this->vendorName(), $this->packageName()]; }
- It's recommended to remove the methods and use the values directly in
-
#26:
RequiresContainerId
interface is renamed toRequiresConfigId
- use the container id as a second argument by
options()
method.
- use the container id as a second argument by
Fixed
- #28: Throws exception if dimensions are set but default options are available and no mandatory options configured
Interop Config 0.3.1
Added
- Nothing
Deprecated
- Nothing
Removed
- Nothing
Fixed
- Fixed Illegal offset type in isset or empty if options are empty and recursive mandatory options are used
Interop Config 0.3.0
Added
- #9: Introducing ProvidesDefaultOptions interface
- #13: Support for recursive mandatory options check
canRetrieveOptions()
toConfigurationTrait
to perform the options check without throwing an exceptionoptionsWithFallback()
toConfigurationTrait
which uses default options if config can not be retrieved- OptionNotFoundException and MandatoryOptionNotFoundException extends OutOfBoundsException instead of RuntimeException
- Check if retrieved options are an array or an instance of ArrayAccess
- Benchmark suite
- Updated documentation
Deprecated
- Nothing
Removed
HasConfig
interface, was renamed toRequiresConfig
HasContainer
interface, was renamed toRequiresContainerId
HasMandatoryOptions
interface, was renamed toRequiresMandatoryOptions
HasDefaultOptions
interface, was renamed toProvidesDefaultOptions
ObtainsOptions
interface, was merged inRequiresConfig
OptionalOptions
interface, can be achieved viaProvidesDefaultOptions
Fixed
- fixed wrong function name in documentation
Interop Config 0.2.0
Added
- #5: replaced
componentName
function withpackageName
(PSR-4 standard)
Deprecated
- Nothing
Removed
- #5:
componentName
function fromHasConfig
interface (BC break)
Fixed
- Nothing
First release
- Initial release
- Added interfaces
- Added trait implementation