Skip to content

Releases: phetit/dependency-injection

v0.7.0

27 Jul 02:02
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Added

  • Add support for dynamic class resolution
  • Auto inject container reference into container

v0.6.0

25 Jul 20:04
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

Changed

  • Breaking: rename register() method to set()
  • Breaking: register() now receives Resolver\ResolverInterface as second parameter

Added

  • Add ContainerBuilder class
  • Add ability to replace existing parameter/service
  • Add Resolver\ServiceResolver class
  • Add Resolver\FactoryServiceResolver class

Removed

  • Breaking: remove factory() method
  • Breaking: remove hasFactory() method

Fixed

  • Thrown exception when an already registered identifier is being used.

v0.5.0

19 Jul 21:33
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

Changed

  • Breaking: change namespace from Phetit\Container to Phetit\DependencyInjection
  • Breaking: rename package from phetit/container to phetit/dependency-injection

v0.4.0

14 Jul 23:45
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Added

  • Add factory method to register non shared services
  • Add hasFactory method

Changed

  • Services registered with register method now are shared on all calls to get($id)

Removed

  • Remove static method
  • Remove hasStatic method

v0.3.0

14 Jul 23:45
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Added

  • Add hasParameter, hasService and hasStatic methods
  • Inject container object to service resolver

Fixed

  • Validate not empty identifier is passed

v0.2.0

14 Jul 00:09
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Added

  • Add static(string $id, mixed $value) method to Container class
  • Add parameter(string $id, mixed $value) method to Container class
  • Add ContainerException class
  • Add NotFoundException class

Changed

  • Changed EntryNotFoundException parent from \InvalidArgumentException to NotFoundException

v0.1.0

11 Jul 22:08
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

🌱 Initial release