- Breaking: rename
InvalidTypeException
toAbstractTypeException
- Breaking: rename
InvalidBuiltinTypeException
toBuiltinTypeException
- Breaking: rename
InvalidIntersectionTypeException
toIntersectionTypeException
- Breaking: rename
InvalidMissingTypeException
toMissingTypeException
- Breaking: rename
InvalidUnionTypeException
toUnionTypeException
0.7.0 - 2023-07-26
- Add support for dynamic class resolution
- Auto inject container reference into container
0.6.0 - 2023-07-25
- Add
ContainerBuilder
class - Add ability to replace existing parameter/service
- Add
Resolver\ServiceResolver
class - Add
Resolver\FactoryServiceResolver
class
- Breaking: rename
register()
method toset()
- Breaking:
register()
now receivesResolver\ResolverInterface
as second parameter
- Breaking: remove
factory()
method - Breaking: remove
hasFactory()
method
- Thrown exception when an already registered identifier is being used.
0.5.0 - 2023-07-19
- Breaking: change namespace from
Phetit\Container
toPhetit\DependencyInjection
- Breaking: rename package from
phetit/container
tophetit/dependency-injection
0.4.0 - 2023-07-14
- Add
factory
method to register non shared services - Add
hasFactory
method
- Services registered with
register
method now are shared on all calls toget($id)
- Remove
static
method - Remove
hasStatic
method
0.3.0 - 2023-07-14
- Add
hasParameter
,hasService
andhasStatic
methods - Inject container object to service resolver
- Validate not empty identifier is passed
0.2.0 - 2023-07-13
- 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
EntryNotFoundException
parent from\InvalidArgumentException
toNotFoundException