All notable changes to container
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Code style fixes.
- First release from monorepo.
- Support installation on PHP 8.
spaceonfire\Container\RawValueHolder
class added and can be used for definition of concrete value.null
used as default value for parameters that allows it.
- Class
spaceonfire\Container\Argument\ArgumentValue
replaced withspaceonfire\Container\RawValueHolder
. Class alias provided for backwards compatibility, but will be removed in next major release. ContainerAwareInterface::setContainer()
should not be considered to return$this
. It will be void in next major release.
- Reflection factory now does not try to instantiate abstract classes.
spaceonfire\Container\Exception\CannotInstantiateAbstractClassException
threw instead. - Argument resolves with default value for abstract classes when available.
- Added priority option for containers in
spaceonfire\Container\CompositeContainer
.
- Class
spaceonfire\Container\ContainerChain
renamed tospaceonfire\Container\CompositeContainer
. This name clearly describes what this class does and just fits best. Class alias provided for backwards compatibility, but will be removed in next major release.
- Development config updates
- Fix PhpDoc comment in service provider aggregate
- Support definition tags
- Resolve definition in
Container
class using parent container
ArgumentResolver
class as default implementation ofResolverInterface
ReflectionFactory
class creates instance of any existing class and resolve constructor argumentsReflectionInvoker
class calls any given callable with resolved argumentsReflectionContainer
class acts like factory for any existing class
Container
class does not manage any existing class no moreContainer
class does not implementsResolverInterface
no more- Removed
AbstractContainerDecorator
class
- First release