Releases: auraphp/Aura.Di
3.3.0
-
(DOC) Update documentation. PR #140.
-
(CHG) Rearranging code to achieve full test coverage with the existing test suite. PR #141.
-
(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
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
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
2.2.4
3.0.0-beta2
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()
andget()
now lock the Container automatically. (See note below.) - (CHG)
$di->params
now allowsnull
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
- BREAK: Rename
Aura\Di\_Config\AbstractContinerTest
toAura\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
3.0.0-alpha1
First 3.x alpha release.