All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
4.0.0 - 2024-06-03
- Logger mapping configuration
- New PHP versions support
- PHP 7.3 support
3.1.1 - 2021-09-02
- Support all versions of psr/log and psr/container
3.1.0 - 2021-05-17
- 'callable' di configuration entries support
- Register itself as PSR Container
3.0.0 - 2020-12-19
- PHP 8 support
- Check that argument type is not builtin, instead deprecated
ReflectionType::getClass
usage
- PHP 7.1 and 7.2 support
- ConfigLoaderInterface and EnvAwareConfigLoader.
- MissingDependencyException (implements PSR interface), generally uses resolving errors.
- [#10]: Throw MissingDependencyException instead Uncaught Error on missing abstraction.
- OutOfBoundsException mark internal, handle MissingDependencyException instead.
2.0.2 - 2020-01-20
- Use ReflectionNamedType::getName() instead deprecated ReflectionType::__toString().
2.0.1 - 2019-05-26
- Up minimal stability.
2.0.0 - 2019-05-26
- PHP 7.3-7.4 support.
- PHP 7 support (end of life).
1.7.0 - 2018-07-22
- PSR-3 optional support: enable with
Injector::enableLoggerAwareInjection()
. Disabled by default.
- License name according SPDX.
1.6.0 - 2017-10-29
- Psr-11 ContainerInterface implementation.
- Option
useIdAsTypeName
(defaulttrue
) for control instance of checking for registered classes: disable withInjector::useIdAsTypeName(false)
.
1.5.1 - 2017-10-18
- Check that argument has class (e.g. not a scalar) before try instantiate it.
1.5.0 - 2017-10-18
- Allow creating instances of not registered types: enable with
Injector::allowInstantiateNotRegisteredTypes(true)
. - Register Injector itself (useful for injection to factories): use
Injector::registerItself()
.
1.4.0 - 2017-08-17
- Allow using default value if required type not set in container: enable with
Injector::allowNullableConstructorArgs(true)
.
1.3.0 - 2017-07-31
- Method Injector::merge()
- Method Injector::getLoggerHelper()
- LoggerHelper implement PSR LoggerAwareInterface
1.2.0 - 2017-06-11
- Allow use value without key with interface name: for instances will be used class, for registered types -- self class name.
1.1.0 - 2017-06-10
- InjectorBuilder class.
- Travis-CI integration.
- All classes.