We are very pleased to announce the release of Yii Framework version 2.0.29. Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version.
Version 2.0.29 is a minor release of Yii 2.0. Additionally to fixing minor bugs it adds PostgreSQL 12 support (including partitioned tables) and adjusts dependency injection container syntax to be closer to what is used in Yii 3:
- Added support for
'__construct()' => ['ConstructorArg1', 'ConstructorArg2']
- Added support for
'__class' => SomeClass::class
Instance::of()
is now allowed in definitions ('SomeInterface' => Instance::of('SomeService')
) and$container->get(Instance::of('SomeInterface')
- Definition could be defined as static call
'SomeInterface' => [SomeFactory::class, 'createMethod']
Current Yii 2 syntax works as it did so it is not necessary to update your configuration.
Thanks to all Yii community members who contribute to the framework, translators who keep documentation translations up to date and community members who answer questions at forums.
There are many active Yii communities so if you need help or want to share your experience, feel free to join them.
A complete list of changes can be found in the CHANGELOG.