Skip to content

Releases: auraphp/Aura.Di

3.3.0

25 Jul 16:58
Compare
Choose a tag to compare
  • (DOC) Update documentation. PR #140.

  • (CHG) Rearranging code to achieve full test coverage with the existing test suite. PR #141.

  • (ADD) ResolutionHelper. PR #143. Fixes #133.

  • (Add) ConfigCollection. PR #146.

  • (CHG) Update Reflector.php for PHP 7.2 compatibility. PR #148.

  • (CHG) Travis CI changes. PR #152.

  • (CHG) Removed CHANGES.md. Added CHANGELOG.md

3.2.0

04 Oct 15:53
Compare
Choose a tag to compare

This release adds these new features.

  • (ADD) LazyInclude and LazyRequire can now recieve a LazyValue as a filename, so that the filename is not resolved until the include/require is invoked.
  • (ADD) Allow direct use of lazies in Lazy; cf PR #128.
  • (ADD) Add a new LazyCallable type for injecting callable services; cf. PR #129.
  • (CHG) LazyValue now resolves lazies itself; cf. PR #137.
  • (ADD) Add a new LazyArray type for injecting arrays of lazy-resolved values; cf PR #138.

There are also various documentation improvements, and the package now provides (via Composer) the virtual package container-interop-implementation.

3.1.0

23 Mar 15:15
Compare
Choose a tag to compare

This release has one documentation addition, and one feature addition.

  • Added documentation for upgrading/migrating from 2.x to 3.x
  • In ContainerBuilder::newConfiguredInstance(), added the ability to pass a ContainerConfig object instance as a config specification.

3.0.0

14 Mar 15:45
Compare
Choose a tag to compare

This is the first 3.x stable release.

2.2.4

21 Jan 18:12
Compare
Choose a tag to compare
  • Fixes #91 property-read designation causes PHPStorm to have syntax error. Changed @property-read to @Property so they will still be auto-completed by IDE. Thank you David Stockton, Brandon Savage.
  • Fix the doc comments.

3.0.0-beta2

21 Dec 20:09
Compare
Choose a tag to compare

This is the second beta release of this library, and likely the last before a stable release (barring unexpected feature changes and bugfixes).

  • (BRK) Container methods newInstance() and get() now lock the Container automatically. (See note below.)
  • (CHG) $di->params now allows null as a parameter value.
  • (ADD) ContainerConfigInterface
  • (ADD) Better exception messages.
  • (DOC) Add and update documentation.

Regarding auto-locking of the Container after newInstance() and get():

This prevents errors from premature unification of params/setters/values/etc. in the Resolver. As a result, do not use Container newInstance() or get() before you are finished calling $params, $setters, $values, set(), or other methods that modify the Container. Use the lazy*() equivalents to avoid auto-locking the Container.

3.0.0-beta1

03 Jun 21:15
Compare
Choose a tag to compare
  • BREAK: Rename Aura\Di\_Config\AbstractContinerTest to Aura\Di\AbstractContainerConfigTest.
  • BREAK: The ContainerBuilder no longer accepts pre-built services, only config class names.
  • BREAK: Remove the Aura\Di\Exception\ReflectionFailure exception, throw the native \ReflectionException instead.
  • BREAK: Previously, the AutoResolver would supply an empty array for array typehints, and null for non-typehinted parameters. It no longer does so; it only attempts to auto-resolve class/interface typehints.
  • CHANGE: Add .gitattributes file for export-ignore values.
  • CHANGE: Allow PHP 5.5 as the minimum version.
  • ADD: Allow constructor params to be specified using position number; this is in addition to specifying by $param name. Positional params take precendence over named params, to be consistent pre-existing behavior regarding merged parameters.
  • DOCS: Update documentation, add bookdown files.

2.2.3

31 May 20:54
Compare
Choose a tag to compare

This release provides a better message for Exception\ReflectionFailure, via issue #73.

3.0.0-alpha1

18 May 14:20
Compare
Choose a tag to compare
3.0.0-alpha1 Pre-release
Pre-release

First 3.x alpha release.

2.2.2

26 Mar 21:59
Compare
Choose a tag to compare

This is releases moves the AbstractContainerTest to is proper location. Sorry for making two releases in a row so quickly.