Skip to content

Releases: xp-forge/inject

6.0.0: XP 12 compatibility, PHP 7.4+

24 Mar 11:33

Choose a tag to compare

5.5.0: Eager singletons

30 Jul 08:09

Choose a tag to compare

  • Merged PR #31: Make it possible to pass instances to singleton()
    (@thekid)
  • Merged PR #29: Migrate to new testing library - @thekid

5.4.0: Simplified primitives

04 Sep 15:22

Choose a tag to compare

  • Prefer float over double for floating point numbers. Consistent
    with PHP's type system, see xp-framework/core#213
    (@thekid)
  • Merged PR #28: Fix type errors with primitive bindings - @thekid
  • Merged PR #27: Simplify string bindings (in ConfiguredBindings). Now,
    string bindings can be intuitively written as key=value.
    (@thekid)

5.3.0: Exception consistency

10 Mar 21:16

Choose a tag to compare

  • Merged PR #26: Wrap instance creation errors in instanceOf() - @thekid

5.2.0: Type union injection

06 Mar 10:15

Choose a tag to compare

  • Merged PR #25: Try injecting all members in a type union, don't stop
    at the first error. This is the correct fix for #24
    (@thekid)

5.1.2: Injection lookup loop fix

03 Mar 20:43

Choose a tag to compare

  • Quickfixed #24: Endless loop when injecting webservices.rest.Endpoint
    by raising an exception. This is not perfect yet but definitively an
    improvement over a crashing program!
    (@thekid)

5.1.1: XP 11, PHP 8.1 compatibility

21 Oct 16:21

Choose a tag to compare

5.1.0: Named binding precedence

17 Jul 15:06

Choose a tag to compare

  • Changed implementation to check named bindings before resorting to
    parameters' default values
    (@thekid)

5.0.2: Nullable fix

17 Jul 14:50

Choose a tag to compare

  • Fixed compatibility with XP 10.6.0's nullable types - @thekid

5.0.1: PHP8 compatibility fix

29 Nov 00:37

Choose a tag to compare

  • Fixed ParseError (syntax error, unexpected token "@") in PHP 8.0
    (@thekid)