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
ec28988a
Commit
ec28988a
authored
Jul 06, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added UrlRule::name.
parent
840a84db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
Logger.php
framework/yii/log/Logger.php
+13
-8
UrlRule.php
framework/yii/web/UrlRule.php
+7
-0
No files found.
framework/yii/log/Logger.php
View file @
ec28988a
...
...
@@ -102,14 +102,6 @@ class Logger extends Component
/**
* @var integer how many messages should be logged before they are flushed from memory and sent to targets.
* Defaults to 1000, meaning the [[flush]] method will be invoked once every 1000 messages logged.
* Set this property to be 0 if you don't want to flush messages until the application terminates.
* This property mainly affects how much memory will be taken by the logged messages.
* A smaller value means less memory, but will increase the execution time due to the overhead of [[flush()]].
*/
public
$flushInterval
=
1000
;
/**
* @var array logged messages. This property is managed by [[log()]] and [[flush()]].
* Each log message is of the following structure:
*
...
...
@@ -124,10 +116,23 @@ class Logger extends Component
*/
public
$messages
=
array
();
/**
* @var array debug data. This property stores various types of debug data reported at
* different instrument places.
*/
public
$data
=
array
();
/**
* @var array|Target[] the log targets. Each array element represents a single [[Target|log target]] instance
* or the configuration for creating the log target instance.
*/
public
$targets
=
array
();
/**
* @var integer how many messages should be logged before they are flushed from memory and sent to targets.
* Defaults to 1000, meaning the [[flush]] method will be invoked once every 1000 messages logged.
* Set this property to be 0 if you don't want to flush messages until the application terminates.
* This property mainly affects how much memory will be taken by the logged messages.
* A smaller value means less memory, but will increase the execution time due to the overhead of [[flush()]].
*/
public
$flushInterval
=
1000
;
/**
* Initializes the logger by registering [[flush()]] as a shutdown function.
...
...
framework/yii/web/UrlRule.php
View file @
ec28988a
...
...
@@ -28,6 +28,10 @@ class UrlRule extends Object
const
CREATION_ONLY
=
2
;
/**
* @var string the name of this rule. If not set, it will use [[pattern]] as the name.
*/
public
$name
;
/**
* @var string the pattern used to parse and create the path info part of a URL.
* @see host
*/
...
...
@@ -106,6 +110,9 @@ class UrlRule extends Object
$this
->
verb
=
array
(
strtoupper
(
$this
->
verb
));
}
}
if
(
$this
->
name
===
null
)
{
$this
->
name
=
$this
->
pattern
;
}
$this
->
pattern
=
trim
(
$this
->
pattern
,
'/'
);
...
...
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