Yii 2.0.48
2023-05-22
1275次浏览
我们非常高兴地宣布 Yii Framework 2.0.48 版本发布了。
Please refer to the instructions at https://www.yiichina.com/download/ to install or upgrade to this version.
This release has a number of bugfixes and adds PHP 8.2 compatibility as well as some small enhancements:
- Usage of DI instead of new keyword in Schemas
- Added cache usage for
yii\rbac\DbManager::getRolesByUser()
- Remove empty elements from the class array in
yii\helpers\BaseHtml::renderTagAttributes()
to prevent unwanted spaces - Added option to use a closure for $variations definition in
yii\filters\PageCache
- Add support for PHP generators to JSON helper
- Add caching in
yii\web\Request
forgetUserIP()
andgetSecureForwardedHeaderTrustedParts()
- Remove the unnecessary call to
$this->oldAttributes
inBaseActiveRecord::getDirtyAttributes()
- Explicitly pass
$fallbackToMaster
astrue
togetSlavePdo()
to ensure it isn't affected by child class with changed defaults - Added
yii\helpers\BaseFileHelper::getExtensionByMimeType()
to get the most common extension for a given MIME type - Change visibility of
yii\web\View::isPageEnded
to protected
感谢所有为该框架做出贡献的 Yii 社区成员,翻译人员保持最新文档翻译,以及在论坛上回答问题的社区成员。
Yii 有许多活跃的社区,因此,如果您需要帮助或想分享自己的经验,请随时加入。
更改的完整列表可以在更新日志中找到。
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- html
- release
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- sphinx
- cache
- widget
- translator
- hydrator
- error handler
- db
- symfonymailer
- log
- http
- config
- assets
- swiftmailer
- 图书
- imagine
- csrf
- elasticsearch
- swagger
- IDE
- i18n
- router
- definitions
- fastroute
- logging
- smarty
- user