Changelog History
Page 2
-
v3.0.0-beta1 Changes
โ 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.
-
v3.0.0-alpha1 Changes
๐ This is releases moves the AbstractContainerTest to is proper location. Sorry for making two releases in a row so quickly.
-
v2.2.5 Changes
December 24, 2018๐ To remove 7.x warning, replace
list() ... each()
withforeach
.โก๏ธ Also update the Travis configuration.
Thanks to @dstepe for these changes!
-
v2.2.4 Changes
January 21, 2016 -
v2.2.3 Changes
๐ป This release provides a better message for Exception\ReflectionFailure, via issue #73.
-
v2.2.2 Changes
๐ This is releases moves the AbstractContainerTest to is proper location. Sorry for making two releases in a row so quickly.
-
v2.2.1 Changes
๐ This release restructures the testing and support files, particularly Composer. Note the changes in how tests are run in the new README.md.
-
v2.2.0 Changes
๐ This release has a couple of feature improvements: traits in ancestor classes and in ancestor traits are now honored, and the DI container can now be serialized and unserialized (unless it contains closures).
โ ADD: The Factory now gets all traits of ancestor classes & ancestor traits.
๐ NEW: Class
Aura\Di\Reflection
decoratesReflectionClass
to permit serialization of the DI Container for caching.๐ FIX: The ContainerBuilder now call setAutoResolve() early, rather than late.
๐ FIX: If the class being factories has no __construct() method, instantiate without constructor.
๐ DOC: Update documentation and support files.
-
v2.1.0 Changes
๐ This release incorporates functionality to optionally disable auto-resolution. 0๏ธโฃ By default it remains enabled, but this default may change in a future version.
โ Add Container::setAutoResolve(), Factory::setAutoResolve(), etc. to allow disabling of auto-resolution
When auto-resolution is disabled, Factory::newInstance() now throws Exception\MissingParam when a constructor param has not been defined
ContainerBuilder::newInstance() now takes a third param to enable/disable auto-resolution
โ AbstractContainerTest now allows you to enable/disable auto-resolve for the tests via a new getAutoResolve() method
-
v2.0.0 Changes
DOC: In README, note that magic-call setters will not work.
๐ BRK: Related to testing under PHP 5.3, remove the ContainerAssertionsTrait. The trait is not 5.3 compatible, so it has to go. Instead, you can extend the Aura\Di_Config\AbstractContainerTest in tests/container/src/ and override the provideGet() and provideNewInstance() methods. Sorry for the hassle.