Changelog
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
0.3.0 - 2024-01-18
Breaking Changes
- Changed the
Inject
attribute so that is is now annotated to parameters instead of functions or methods.
Added
- Add
Type::Callback
. - The optional
injectCallback
parameter toCreator::create
. - The optional
injectCallback
parameter toCallableResolver::resolve
. - The optional
injectCallback
parameter toConstructorResolver::resolve
. Creator
now returns the container entry of the requested class if it exists. This way it supports instantiating interfaces if they are registered in the container.
0.2.0 - 2024-01-05
Add predefined types.
Added
- The
predefinedTypes
parameter toCreator::create
. - The
predefinedTypes
parameter toCallableResolver::resolve
. - The
predefinedTypes
parameter toConstructorResolver::resolve
.
0.1.0 - 2023-11-11
Initial release.
Added
- The
Wire
factory, which producesCreator
,CallableResolver
andContstructorResolver
instances. - The
Inject
attribute. - The
Call
attribute. - The ability to be combined with PSR-11 containers.