Releases: phetit/dependency-injection
Releases · phetit/dependency-injection
v0.7.0
Added
- Add support for dynamic class resolution
- Auto inject container reference into container
v0.6.0
Changed
- Breaking: rename
register()
method toset()
- Breaking:
register()
now receivesResolver\ResolverInterface
as second parameter
Added
- Add
ContainerBuilder
class - Add ability to replace existing parameter/service
- Add
Resolver\ServiceResolver
class - Add
Resolver\FactoryServiceResolver
class
Removed
- Breaking: remove
factory()
method - Breaking: remove
hasFactory()
method
Fixed
- Thrown exception when an already registered identifier is being used.
v0.5.0
Changed
- Breaking: change namespace from
Phetit\Container
toPhetit\DependencyInjection
- Breaking: rename package from
phetit/container
tophetit/dependency-injection
v0.4.0
v0.3.0
v0.2.0
Added
- Add
static(string $id, mixed $value)
method toContainer
class - Add
parameter(string $id, mixed $value)
method toContainer
class - Add
ContainerException
class - Add
NotFoundException
class
Changed
- Changed
EntryNotFoundException
parent from\InvalidArgumentException
toNotFoundException