Skip to content

Releases: ghostwriter/container

4.0.3

09 Oct 18:18
a36501a
Compare
Choose a tag to compare

Full Changelog: 4.0.2...4.0.3

4.0.2

13 Jul 15:02
5779b4a
Compare
Choose a tag to compare

Full Changelog: 4.0.1...4.0.2

4.0.1

22 Jun 21:59
b37f507
Compare
Choose a tag to compare

Full Changelog: 4.0.0...4.0.1

4.0.0

21 Jun 01:45
02df4b3
Compare
Choose a tag to compare

Added

  • Registering a service on the container using Inject attribute.
  • Registering a service factory on the container using Factory attribute.
  • Registering a service extension on the container using Extension attribute.

Full Changelog: 3.0.3...4.0.0

3.0.3

11 Apr 00:06
0e64f73
Compare
Choose a tag to compare

Full Changelog: 3.0.2...3.0.3

3.0.2

19 Feb 03:46
f0aaf48
Compare
Choose a tag to compare

Extensions will be called if the $serviceName matches the $className or is an instance of $serviceName

Full Changelog: 3.0.1...3.0.2

3.0.1

06 Feb 19:02
1752d1d
Compare
Choose a tag to compare

Returns $this when requested for an instance of Ghostwriter\Container\Interface\ContainerInterface

Full Changelog: 3.0.0...3.0.1

3.0.0

06 Feb 18:03
72f9edf
Compare
Choose a tag to compare

Added

  • Method invoke() was added to interface Ghostwriter\Container\Interface\ContainerInterface

Changed

  • The number of required arguments for Ghostwriter\Container\Instantiator#__construct() increased from 0 to 2
  • Parameter $reflector of Ghostwriter\Container\Instantiator#construct() was added
  • Parameter $parameterBuilder of Ghostwriter\Container\Instantiator#construct() was added
  • Parameter $container of Ghostwriter\Container\ParameterBuilder#construct() was added

Fixed

  • ParameterBuilder resolves positional arguments

Removed

  • Method Ghostwriter\Container\Instantiator#buildParameters() was removed
  • Parameter $container of Ghostwriter\Container\Instantiator#instantiate() was removed
  • Parameter $container of Ghostwriter\Container\ParameterBuilder#build() was removed

Full Changelog: 2.0.1...3.0.0

2.0.1

15 Nov 16:26
734509e
Compare
Choose a tag to compare
  • Add factory to register a service factory
  • Build resolves aliases
  • ParameterBuilder resolves default/nullable values from the container
  • Extend supports service name and service type

Full Changelog: 2.0.0...2.0.1

2.0.0

12 Nov 22:58
b456318
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.6.0...2.0.0