mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 17:48:37 +08:00
Merge pull request #5887 from TriAnMan/doc-fix
Fix upgrade doc [skip ci]
This commit is contained in:
@@ -200,6 +200,7 @@ new ones save the following code as `convert.php` that should be placed in the s
|
||||
|
||||
* Static helper `yii\helpers\Security` has been converted into an application component. You should change all usage of
|
||||
its methods to a new syntax, for example: instead of `yii\helpers\Security::hashData()` use `Yii::$app->getSecurity()->hashData()`.
|
||||
The `generateRandomKey()` method now produces not an ASCII compatible output. Use `generateRandomString()` instead.
|
||||
Default encryption and hash parameters has been upgraded. If you need to decrypt/validate data that was encrypted/hashed
|
||||
before, use the following configuration of the 'security' component:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user