The dependency injection container for humans
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.5...7.0.6
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.4...7.0.5
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.3...7.0.4
useAttributes
missing attribute by @lcharette in https://github.com/PHP-DI/PHP-DI/pull/850
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.2...7.0.3
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.1...7.0.2
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.0...7.0.1
Blog post 👉 https://php-di.org/news/23-php-di-7-0-released.html
PHP-DI 7 is a maturation of v6 to support modern PHP versions and their new features:
@Inject
phpdoc annotations have been replaced by the native PHP attribute #[Inject]
If you are migrating from a 6.x version, check out the detailed migration guide.
The documentation shown on php-di.org is now for the 7.0 version, the 6.x documentation can be found here.
Release candidate for PHP-DI 7.0 planned for next week.
#[Inject]
to replace @Inject
!@Inject
used with phpdoc annotations -> only native PHP types are supported now
That makes PHP-DI simpler, faster and lighter (no need for the PhpDocReader package)Full migration guide is available here: https://github.com/PHP-DI/PHP-DI/blob/8948ffbc43f3e19c66d908593b6a94b2fc1fe6f6/doc/migration/7.0.md#L17-L16
PHP-DI now requires PHP 7.4 or greater.
Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/6.3.5...6.4.0
#792 Add @template
return types for better autocomplete/static analysis by @rdarcy1