Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
c86db261
Commit
c86db261
authored
Jun 27, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notes about `Security` class refactoring added to CHANGELOG.md and UPGRADE.md
parent
e6f7d9b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
UPGRADE.md
framework/UPGRADE.md
+19
-0
No files found.
framework/CHANGELOG.md
View file @
c86db261
...
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
-
Bug: URL encoding for the route parameter added to
`\yii\web\UrlManager`
(klimov-paul)
-
Bug: Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 (qiangxue)
-
Bug: Fixed Object of class Imagick could not be converted to string in CaptchaAction (eXprojects, cebe)
-
Enh #87: Helper
`yii\helpers\Security`
converted into application component, cryptographic strength improved (klimov-paul)
-
Enh #422: Added Support for BIT(M) data type default values in Schema (cebe)
-
Enh #1452: Added
`Module::getInstance()`
to allow accessing the module instance from anywhere within the module (qiangxue)
-
Enh #2264:
`CookieCollection::has()`
will return false for expired or removed cookies (qiangxue)
...
...
framework/UPGRADE.md
View file @
c86db261
...
...
@@ -72,3 +72,21 @@ Upgrade from Yii 2.0 Beta
*
`mail`
component was renamed to
`mailer`
,
`yii\log\EmailTarget::$mail`
was renamed to
`yii\log\EmailTarget::$mailer`
.
Please update all references in the code and config files.
*
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()`
.
If you have used
`yii\helpers\Security`
for encryption or hash generating, you need to explicitly configure 'security'
component for the legacy code support in following way:
```
return [
'components' => [
'security' => [
'cryptBlockSize' => 16,
'cryptKeySize' => 24,
'derivationIterations' => 1000,
],
// ...
],
// ...
];
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment