#648: Revert changes from 6.0.7 (#605) because it introduced regressions.
#605 Fixes some bugs with platforms like Heroku.
In previous versions some random strings were used in the CompiledContainer which caused each regeneration/compilation of the container to have a different result, while no change in the configuration were made. The CompiledContainer has now been made idempotent: "a specific PHP-DI configuration X always results in CompiledContainer Y".
#645: Performance improvement: proxy classes are now generated when the container is compiled. That means less overhead at runtime.
#618 & #627: Support for variadics to provide multiple definition files in one method call using ContainerBuilder::addDefinitions()
.
#614, #622 & #621: fix regression in Container::set()
#616: Bugfix when using autowiring with wildcards (by @jasonrm)
Fix potential regression introduced in the previous release when fixing #582
ContainerInterface
to point to the wrapper container if it was definedThis is the complete change log. You can also read the migration guide for upgrading or the blog article to see what's new.
DI\object()
has been replaced by more specific and less ambiguous helpers:DI\create()
creates an object, overrides autowiring and previous definitionsDI\autowire()
autowires an object and allows to override specific constructor and method parametersnew Container()
object()
inside arrays: it now works with the new create()
and autowire()
helpersDI\object()
has been removed, use DI\create()
or DI\autowire()
insteadContainerBuilder::setDefinitionCache()
was removed, use ContainerBuilder::enableCompilation()
instead.DI\link()
helper was removed, used DI\get() instead\DI\Debug
class has been removed. Definitions can be cast to string directlyDI\Definition\Exception\DefinitionException
was renamed to DI\Definition\Exception\InvalidDefinition
DI\Definition\Exception\AnnotationException
was renamed to DI\Definition\Exception\InvalidAnnotation
DI\InvokerInterface
was removed in favor of Invoker\InvokerInterface
Be also aware that internal classes or interfaces may have changed.
Compatibility with PSR-11 (which required a very small BC break)
#10 Compatibility with PHPUnit 7
Stable version for PHPUnit 6.
Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:
sudo dnf upgrade --refresh --advisory=FEDORA-2019-7613467f24
Please login to add feedback.
This update has been submitted for testing by siwinski.
Looks like this update breaks php-di-symfony2-bridge
https://apps.fedoraproject.org/koschei/package/php-di-symfony2-bridge?collection=f31
This update has been pushed to testing.
This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes
This update has been submitted for stable by siwinski.
This update has been pushed to stable.