Skip to content

Releases: brick/di

0.2.0

30 Oct 13:53
Compare
Choose a tag to compare

Breaking changes:

  • BindingDefinition::using() has been removed:
    Calls to bind()->using() must be replaced with bind()->with() and keys wrapped in Ref objects.
  • BindingDefinition::to() has been removed:
    Calls to bind('key')->to('value') must be replaced with bind('key', 'value').
  • Container::get() now accepts strings only;
  • Container::create() has been removed, use new Container() instead;
  • ArrayValueResolver::setValues() have been split into 2 methods:
    • setParameterValues()
    • setPropertyValues()

New features:

  • Injection policies support interfaces

0.1.0

04 Oct 16:16
Compare
Choose a tag to compare

First beta release.