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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
cb20ab59
Commit
cb20ab59
authored
Jan 11, 2014
by
JoniDS
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
15559b93
237f94e9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
+15
-9
PhpDocController.php
build/controllers/PhpDocController.php
+1
-1
Markdown.php
extensions/apidoc/helpers/Markdown.php
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+2
-0
classes.php
framework/classes.php
+3
-1
BaseJson.php
framework/helpers/BaseJson.php
+8
-6
No files found.
build/controllers/PhpDocController.php
View file @
cb20ab59
...
@@ -43,7 +43,7 @@ class PhpDocController extends Controller
...
@@ -43,7 +43,7 @@ class PhpDocController extends Controller
{
{
$except
=
[];
$except
=
[];
if
(
$root
===
null
)
{
if
(
$root
===
null
)
{
$root
=
dirname
(
dirname
(
YII_PATH
)
);
$root
=
dirname
(
YII_PATH
);
$extensionPath
=
"
$root
/extensions"
;
$extensionPath
=
"
$root
/extensions"
;
foreach
(
scandir
(
$extensionPath
)
as
$extension
)
{
foreach
(
scandir
(
$extensionPath
)
as
$extension
)
{
if
(
ctype_alpha
(
$extension
)
&&
is_dir
(
$extensionPath
.
'/'
.
$extension
))
{
if
(
ctype_alpha
(
$extension
)
&&
is_dir
(
$extensionPath
.
'/'
.
$extension
))
{
...
...
extensions/apidoc/helpers/Markdown.php
View file @
cb20ab59
...
@@ -32,7 +32,7 @@ class Markdown extends \yii\helpers\Markdown
...
@@ -32,7 +32,7 @@ class Markdown extends \yii\helpers\Markdown
* @param TypeDoc $context
* @param TypeDoc $context
* @return string
* @return string
*/
*/
public
static
function
process
(
$content
,
$context
)
public
static
function
process
(
$content
,
$context
=
null
)
{
{
$content
=
trim
(
parent
::
process
(
$content
,
[]));
$content
=
trim
(
parent
::
process
(
$content
,
[]));
if
(
!
strncmp
(
$content
,
'<p>'
,
3
)
&&
substr
(
$content
,
-
4
,
4
)
==
'</p>'
)
{
if
(
!
strncmp
(
$content
,
'<p>'
,
3
)
&&
substr
(
$content
,
-
4
,
4
)
==
'</p>'
)
{
...
...
framework/CHANGELOG.md
View file @
cb20ab59
...
@@ -81,6 +81,8 @@ Yii Framework 2 Change Log
...
@@ -81,6 +81,8 @@ Yii Framework 2 Change Log
-
Chg: Changed the signature of
`urlCreator`
and button creators for
`yii\gridview\ActionColumn`
(qiangxue)
-
Chg: Changed the signature of
`urlCreator`
and button creators for
`yii\gridview\ActionColumn`
(qiangxue)
-
Chg: Updated HTMLPurified dependency to
`4.6.*`
.
-
Chg: Updated HTMLPurified dependency to
`4.6.*`
.
-
Chg: Changed Yii autoloader to support loading PSR-4 classes only (i.e. PEAR-styled classes not supported anymore) (qiangxue)
-
Chg: Changed Yii autoloader to support loading PSR-4 classes only (i.e. PEAR-styled classes not supported anymore) (qiangxue)
-
Chg: Changed the directory structure of the framework repository according to PSR-4.
You have to update your applications index.php and yii console file to point to the right location for Yii.php
-
Chg: Advanced app template: moved database connection DSN, login and password to
`-local`
config not to expose it to VCS (samdark)
-
Chg: Advanced app template: moved database connection DSN, login and password to
`-local`
config not to expose it to VCS (samdark)
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
...
...
framework/classes.php
View file @
cb20ab59
...
@@ -30,6 +30,7 @@ return [
...
@@ -30,6 +30,7 @@ return [
'yii\base\InvalidConfigException'
=>
YII_PATH
.
'/base/InvalidConfigException.php'
,
'yii\base\InvalidConfigException'
=>
YII_PATH
.
'/base/InvalidConfigException.php'
,
'yii\base\InvalidParamException'
=>
YII_PATH
.
'/base/InvalidParamException.php'
,
'yii\base\InvalidParamException'
=>
YII_PATH
.
'/base/InvalidParamException.php'
,
'yii\base\InvalidRouteException'
=>
YII_PATH
.
'/base/InvalidRouteException.php'
,
'yii\base\InvalidRouteException'
=>
YII_PATH
.
'/base/InvalidRouteException.php'
,
'yii\base\MailEvent'
=>
YII_PATH
.
'/base/MailEvent.php'
,
'yii\base\Model'
=>
YII_PATH
.
'/base/Model.php'
,
'yii\base\Model'
=>
YII_PATH
.
'/base/Model.php'
,
'yii\base\ModelEvent'
=>
YII_PATH
.
'/base/ModelEvent.php'
,
'yii\base\ModelEvent'
=>
YII_PATH
.
'/base/ModelEvent.php'
,
'yii\base\Module'
=>
YII_PATH
.
'/base/Module.php'
,
'yii\base\Module'
=>
YII_PATH
.
'/base/Module.php'
,
...
@@ -108,6 +109,8 @@ return [
...
@@ -108,6 +109,8 @@ return [
'yii\db\mssql\TableSchema'
=>
YII_PATH
.
'/db/mssql/TableSchema.php'
,
'yii\db\mssql\TableSchema'
=>
YII_PATH
.
'/db/mssql/TableSchema.php'
,
'yii\db\mysql\QueryBuilder'
=>
YII_PATH
.
'/db/mysql/QueryBuilder.php'
,
'yii\db\mysql\QueryBuilder'
=>
YII_PATH
.
'/db/mysql/QueryBuilder.php'
,
'yii\db\mysql\Schema'
=>
YII_PATH
.
'/db/mysql/Schema.php'
,
'yii\db\mysql\Schema'
=>
YII_PATH
.
'/db/mysql/Schema.php'
,
'yii\db\oci\QueryBuilder'
=>
YII_PATH
.
'/db/oci/QueryBuilder.php'
,
'yii\db\oci\Schema'
=>
YII_PATH
.
'/db/oci/Schema.php'
,
'yii\db\pgsql\QueryBuilder'
=>
YII_PATH
.
'/db/pgsql/QueryBuilder.php'
,
'yii\db\pgsql\QueryBuilder'
=>
YII_PATH
.
'/db/pgsql/QueryBuilder.php'
,
'yii\db\pgsql\Schema'
=>
YII_PATH
.
'/db/pgsql/Schema.php'
,
'yii\db\pgsql\Schema'
=>
YII_PATH
.
'/db/pgsql/Schema.php'
,
'yii\db\sqlite\QueryBuilder'
=>
YII_PATH
.
'/db/sqlite/QueryBuilder.php'
,
'yii\db\sqlite\QueryBuilder'
=>
YII_PATH
.
'/db/sqlite/QueryBuilder.php'
,
...
@@ -220,7 +223,6 @@ return [
...
@@ -220,7 +223,6 @@ return [
'yii\web\PageCache'
=>
YII_PATH
.
'/web/PageCache.php'
,
'yii\web\PageCache'
=>
YII_PATH
.
'/web/PageCache.php'
,
'yii\web\Request'
=>
YII_PATH
.
'/web/Request.php'
,
'yii\web\Request'
=>
YII_PATH
.
'/web/Request.php'
,
'yii\web\Response'
=>
YII_PATH
.
'/web/Response.php'
,
'yii\web\Response'
=>
YII_PATH
.
'/web/Response.php'
,
'yii\web\ResponseEvent'
=>
YII_PATH
.
'/web/ResponseEvent.php'
,
'yii\web\ResponseFormatterInterface'
=>
YII_PATH
.
'/web/ResponseFormatterInterface.php'
,
'yii\web\ResponseFormatterInterface'
=>
YII_PATH
.
'/web/ResponseFormatterInterface.php'
,
'yii\web\Session'
=>
YII_PATH
.
'/web/Session.php'
,
'yii\web\Session'
=>
YII_PATH
.
'/web/Session.php'
,
'yii\web\SessionIterator'
=>
YII_PATH
.
'/web/SessionIterator.php'
,
'yii\web\SessionIterator'
=>
YII_PATH
.
'/web/SessionIterator.php'
,
...
...
framework/helpers/BaseJson.php
View file @
cb20ab59
...
@@ -81,18 +81,20 @@ class BaseJson
...
@@ -81,18 +81,20 @@ class BaseJson
*/
*/
protected
static
function
processData
(
$data
,
&
$expressions
,
$expPrefix
)
protected
static
function
processData
(
$data
,
&
$expressions
,
$expPrefix
)
{
{
if
(
$data
instanceof
\JsonSerializable
)
{
$data
=
$data
->
jsonSerialize
();
}
if
(
is_object
(
$data
))
{
if
(
is_object
(
$data
))
{
if
(
$data
instanceof
JsExpression
)
{
if
(
$data
instanceof
JsExpression
)
{
$token
=
"!{[
$expPrefix
="
.
count
(
$expressions
)
.
']}!'
;
$token
=
"!{[
$expPrefix
="
.
count
(
$expressions
)
.
']}!'
;
$expressions
[
'"'
.
$token
.
'"'
]
=
$data
->
expression
;
$expressions
[
'"'
.
$token
.
'"'
]
=
$data
->
expression
;
return
$token
;
return
$token
;
}
elseif
(
$data
instanceof
\JsonSerializable
)
{
$data
=
$data
->
jsonSerialize
();
}
elseif
(
$data
instanceof
Arrayable
)
{
$data
=
$data
->
toArray
();
}
else
{
$data
=
get_object_vars
(
$data
);
}
}
$data
=
$data
instanceof
Arrayable
?
$data
->
toArray
()
:
get_object_vars
(
$data
);
if
(
$data
===
[]
&&
!
$data
instanceof
Arrayable
)
{
if
(
$data
===
[])
{
return
new
\stdClass
();
return
new
\stdClass
();
}
}
}
}
...
...
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