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
682c0a34
Commit
682c0a34
authored
Jul 06, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added trace messages.
parent
ec28988a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
Action.php
framework/yii/base/Action.php
+3
-0
Controller.php
framework/yii/base/Controller.php
+1
-0
InlineAction.php
framework/yii/base/InlineAction.php
+3
-0
Application.php
framework/yii/web/Application.php
+1
-0
No files found.
framework/yii/base/Action.php
View file @
682c0a34
...
...
@@ -7,6 +7,8 @@
namespace
yii\base
;
use
Yii
;
/**
* Action is the base class for all controller action classes.
*
...
...
@@ -75,6 +77,7 @@ class Action extends Component
throw
new
InvalidConfigException
(
get_class
(
$this
)
.
' must define a "run()" method.'
);
}
$args
=
$this
->
controller
->
bindActionParams
(
$this
,
$params
);
Yii
::
trace
(
'Running "'
.
get_class
(
$this
)
.
'::run()" with parameters: '
.
var_export
(
$args
,
true
),
__METHOD__
);
return
call_user_func_array
(
array
(
$this
,
'run'
),
$args
);
}
}
framework/yii/base/Controller.php
View file @
682c0a34
...
...
@@ -107,6 +107,7 @@ class Controller extends Component
{
$action
=
$this
->
createAction
(
$id
);
if
(
$action
!==
null
)
{
Yii
::
trace
(
"Route to run: "
.
$action
->
getUniqueId
(),
__METHOD__
);
$oldAction
=
$this
->
action
;
$this
->
action
=
$action
;
$result
=
null
;
...
...
framework/yii/base/InlineAction.php
View file @
682c0a34
...
...
@@ -7,6 +7,8 @@
namespace
yii\base
;
use
Yii
;
/**
* InlineAction represents an action that is defined as a controller method.
*
...
...
@@ -44,6 +46,7 @@ class InlineAction extends Action
public
function
runWithParams
(
$params
)
{
$args
=
$this
->
controller
->
bindActionParams
(
$this
,
$params
);
Yii
::
trace
(
"Running '"
.
get_class
(
$this
->
controller
)
.
'::'
.
$this
->
actionMethod
.
"()' with parameters: "
.
var_export
(
$args
,
true
),
__METHOD__
);
return
call_user_func_array
(
array
(
$this
->
controller
,
$this
->
actionMethod
),
$args
);
}
}
framework/yii/web/Application.php
View file @
682c0a34
...
...
@@ -65,6 +65,7 @@ class Application extends \yii\base\Application
$params
=
array_splice
(
$this
->
catchAll
,
1
);
}
try
{
Yii
::
trace
(
"Route requested: '
$route
'"
,
__METHOD__
);
$result
=
$this
->
runAction
(
$route
,
$params
);
if
(
$result
instanceof
Response
)
{
return
$result
;
...
...
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