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
\Iteratorobjects
Deprecated
- Nothing
Removed
- Nothing
Fixed
- #34: Inconsistent return type in
defaultOptions()defaultOptions()method return type isiterablebutarrayis 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 isiterablecanRetrieveOptions()method return type isboolmandatoryOptions()method return type isiterabledefaultOptions()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 toRequiresConfigto 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:
RequiresContainerIdinterface 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()toConfigurationTraitto perform the options check without throwing an exceptionoptionsWithFallback()toConfigurationTraitwhich 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
HasConfiginterface, was renamed toRequiresConfigHasContainerinterface, was renamed toRequiresContainerIdHasMandatoryOptionsinterface, was renamed toRequiresMandatoryOptionsHasDefaultOptionsinterface, was renamed toProvidesDefaultOptionsObtainsOptionsinterface, was merged inRequiresConfigOptionalOptionsinterface, can be achieved viaProvidesDefaultOptions
Fixed
- fixed wrong function name in documentation
Interop Config 0.2.0
Added
- #5: replaced
componentNamefunction withpackageName(PSR-4 standard)
Deprecated
- Nothing
Removed
- #5:
componentNamefunction fromHasConfiginterface (BC break)
Fixed
- Nothing
First release
- Initial release
- Added interfaces
- Added trait implementation