Releases: brick/di
Releases · brick/di
0.4.1
0.4.0
💥 Breaking changes
- minimum PHP version is now 8.0
- namespace
Brick\Di
is nowBrick\DI
DependencyInjectionException
has been renamed toDIException
Inject
is now an attribute, not a Doctrine annotation anymoreInject
has been moved toBrick\DI\Inject
Container
now defaults to using attributesValueResolver::getParameter|PropertyValue()
now have amixed
return type
✨ New features
- Support for typed properties
- Support for union types
0.3.4
0.3.3
0.3.2
0.3.1
Non-breaking change
The $object
parameter of the Brick\Di\Injector::inject()
method is now strongly typed to object
:
public function inject(object $object) : void
Note that this change is non-breaking because PHP allows a subclass to override the method with no type hint.