Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
/ container Public archive
generated from spaceonfire/skeleton

Releases: spaceonfire/container

2.4.1

19 Feb 15:17
Compare
Choose a tag to compare

Added

  • Support installation on PHP 8

2.4.0

19 Dec 18:06
Compare
Choose a tag to compare

Added

  • spaceonfire\Container\RawValueHolder class added and can be used for definition of concrete value.
  • null used as default value for parameters that allows it.

Deprecated

  • Class spaceonfire\Container\Argument\ArgumentValue replaced with spaceonfire\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.

Fixed

  • 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.

2.3.0

24 Oct 10:57
Compare
Choose a tag to compare

Added

  • Added priority option for containers in spaceonfire\Container\CompositeContainer.

2.2.0

22 Oct 19:36
Compare
Choose a tag to compare

Deprecated

  • Class spaceonfire\Container\ContainerChain renamed to spaceonfire\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.

2.1.1

26 Sep 18:12
327d9da
Compare
Choose a tag to compare

Fixed

  • Development config updates
  • Fix PhpDoc comment in service provider aggregate

2.1.0

23 Sep 15:16
9d33910
Compare
Choose a tag to compare

Added

  • Support definition tags

v2.0.1

21 Jun 20:03
1ebf8a9
Compare
Choose a tag to compare

Fixed

  • Resolve definition in Container class using parent container

v2.0.0

21 Jun 19:17
f8ccf9d
Compare
Choose a tag to compare

Added

  • ArgumentResolver class as default implementation of ResolverInterface
  • ReflectionFactory class creates instance of any existing class and resolve constructor arguments
  • ReflectionInvoker class calls any given callable with resolved arguments
  • ReflectionContainer class acts like factory for any existing class

Removed

  • Container class does not manage any existing class no more
  • Container class does not implements ResolverInterface no more
  • Removed AbstractContainerDecorator class

First release

11 Jun 18:00
c5f198b
Compare
Choose a tag to compare
1.0.0

1.0.0