Skip to content

Releases: hultberg/hbcontainer

v6.1.0

27 Feb 12:26
Compare
Choose a tag to compare

New minor release v6.1.0.

Changes

  • Compatible with php 8.1
  • Compatible with psr/container ^1.0|^2.0
  • There are some internal changes to fix issues reported by phpstan.

v2.1.1

25 Aug 16:36
v2.1.1
Compare
Choose a tag to compare
  • Fix unable to compile any function that had interface type-hinted in its arguments.

v2.1.0

25 Aug 15:49
v2.1.0
Compare
Choose a tag to compare
  • Add definition value, it can hold any value you provide it.
  • Change definition reference to reference any definition entry, not just classes.

v2.0.0

25 Aug 15:17
v2.0.0
Compare
Choose a tag to compare
  • Implement compiling container with all defined definitions
  • Rename helper function \HbLib\Container\get to \HbLib\Container\resolve
  • Add new definition Reference, use it to reference other definitions. A helper function has been added for it: \HbLib\Container\reference
  • Add new DefinitionSource object to hold all definitions.
  • Add new ContainerBuilder. It allows you to enable compiling.
  • Implement circular dependency resolving checking

v1.6.3

16 Jun 11:06
v1.6.3
3da6126
Compare
Choose a tag to compare
  • Add method Container::set(), it is not part of any interface.

v1.6.2

16 Jun 11:06
v1.6.2
Compare
Choose a tag to compare
  • Fix resolving builtin types with default values.
  • Refactor the logic for resolving parameters

v1.6.1

16 Jun 11:06
Compare
Choose a tag to compare

Container::has() will no longer call make(). This is not seen as a breaking change because the has method is documented to not always predict if get can return something.

v1.6.0

16 Jun 11:07
Compare
Choose a tag to compare
  • Bug: Argument resolver did not resolve Definitions
  • DefinitionClass now does not require a class name. When not specified, the container will find the class being resolved with the definition and use it. This allows us to write (in definition array): MyClass::class => get() and not MyClass::class => get(MyClass::class)
  • Add interface InvokerInterface for method call
  • Add interface ArgumentResolverInterface for the method resolveArguments()
  • Internal refactoring and code splitting.