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
54ac875e
Commit
54ac875e
authored
Jun 27, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Component 'security' added tp the base application
parent
db0beb6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Application.php
framework/base/Application.php
+11
-0
classes.php
framework/classes.php
+1
-1
No files found.
framework/base/Application.php
View file @
54ac875e
...
@@ -30,6 +30,7 @@ use Yii;
...
@@ -30,6 +30,7 @@ use Yii;
* read-only.
* read-only.
* @property string $runtimePath The directory that stores runtime files. Defaults to the "runtime"
* @property string $runtimePath The directory that stores runtime files. Defaults to the "runtime"
* subdirectory under [[basePath]].
* subdirectory under [[basePath]].
* @property \yii\base\Security $security The security application component.
* @property string $timeZone The time zone used by this application.
* @property string $timeZone The time zone used by this application.
* @property string $uniqueId The unique ID of the module. This property is read-only.
* @property string $uniqueId The unique ID of the module. This property is read-only.
* @property \yii\web\UrlManager $urlManager The URL manager for this application. This property is read-only.
* @property \yii\web\UrlManager $urlManager The URL manager for this application. This property is read-only.
...
@@ -592,6 +593,15 @@ abstract class Application extends Module
...
@@ -592,6 +593,15 @@ abstract class Application extends Module
}
}
/**
/**
* Returns the security component.
* @return \yii\base\Security security component
*/
public
function
getSecurity
()
{
return
$this
->
get
(
'security'
);
}
/**
* Returns the core application components.
* Returns the core application components.
* @see set
* @see set
*/
*/
...
@@ -605,6 +615,7 @@ abstract class Application extends Module
...
@@ -605,6 +615,7 @@ abstract class Application extends Module
'mailer'
=>
[
'class'
=>
'yii\swiftmailer\Mailer'
],
'mailer'
=>
[
'class'
=>
'yii\swiftmailer\Mailer'
],
'urlManager'
=>
[
'class'
=>
'yii\web\UrlManager'
],
'urlManager'
=>
[
'class'
=>
'yii\web\UrlManager'
],
'assetManager'
=>
[
'class'
=>
'yii\web\AssetManager'
],
'assetManager'
=>
[
'class'
=>
'yii\web\AssetManager'
],
'security'
=>
[
'class'
=>
'yii\base\Security'
],
];
];
}
}
...
...
framework/classes.php
View file @
54ac875e
...
@@ -41,6 +41,7 @@ return [
...
@@ -41,6 +41,7 @@ return [
'yii\base\Object'
=>
YII_PATH
.
'/base/Object.php'
,
'yii\base\Object'
=>
YII_PATH
.
'/base/Object.php'
,
'yii\base\Request'
=>
YII_PATH
.
'/base/Request.php'
,
'yii\base\Request'
=>
YII_PATH
.
'/base/Request.php'
,
'yii\base\Response'
=>
YII_PATH
.
'/base/Response.php'
,
'yii\base\Response'
=>
YII_PATH
.
'/base/Response.php'
,
'yii\base\Security'
=>
YII_PATH
.
'/base/Security.php'
,
'yii\base\Theme'
=>
YII_PATH
.
'/base/Theme.php'
,
'yii\base\Theme'
=>
YII_PATH
.
'/base/Theme.php'
,
'yii\base\UnknownClassException'
=>
YII_PATH
.
'/base/UnknownClassException.php'
,
'yii\base\UnknownClassException'
=>
YII_PATH
.
'/base/UnknownClassException.php'
,
'yii\base\UnknownMethodException'
=>
YII_PATH
.
'/base/UnknownMethodException.php'
,
'yii\base\UnknownMethodException'
=>
YII_PATH
.
'/base/UnknownMethodException.php'
,
...
@@ -167,7 +168,6 @@ return [
...
@@ -167,7 +168,6 @@ return [
'yii\helpers\Inflector'
=>
YII_PATH
.
'/helpers/Inflector.php'
,
'yii\helpers\Inflector'
=>
YII_PATH
.
'/helpers/Inflector.php'
,
'yii\helpers\Json'
=>
YII_PATH
.
'/helpers/Json.php'
,
'yii\helpers\Json'
=>
YII_PATH
.
'/helpers/Json.php'
,
'yii\helpers\Markdown'
=>
YII_PATH
.
'/helpers/Markdown.php'
,
'yii\helpers\Markdown'
=>
YII_PATH
.
'/helpers/Markdown.php'
,
'yii\helpers\Security'
=>
YII_PATH
.
'/helpers/Security.php'
,
'yii\helpers\StringHelper'
=>
YII_PATH
.
'/helpers/StringHelper.php'
,
'yii\helpers\StringHelper'
=>
YII_PATH
.
'/helpers/StringHelper.php'
,
'yii\helpers\Url'
=>
YII_PATH
.
'/helpers/Url.php'
,
'yii\helpers\Url'
=>
YII_PATH
.
'/helpers/Url.php'
,
'yii\helpers\VarDumper'
=>
YII_PATH
.
'/helpers/VarDumper.php'
,
'yii\helpers\VarDumper'
=>
YII_PATH
.
'/helpers/VarDumper.php'
,
...
...
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