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
03a88e4f
Commit
03a88e4f
authored
Jan 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted composer for faker extension.
parent
389ef891
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
15 deletions
+7
-15
PhpDocController.php
build/controllers/PhpDocController.php
+6
-14
composer.json
composer.json
+1
-0
README.md
extensions/README.md
+0
-1
No files found.
build/controllers/PhpDocController.php
View file @
03a88e4f
...
...
@@ -44,26 +44,18 @@ class PhpDocController extends Controller
$except
=
[];
if
(
$root
===
null
)
{
$root
=
dirname
(
dirname
(
YII_PATH
));
$extension
=
"
$root
/extensions/yii"
;
Yii
::
setAlias
(
'@yii/authclient'
,
"
$extension
/authclient"
);
Yii
::
setAlias
(
'@yii/bootstrap'
,
"
$extension
/bootstrap"
);
Yii
::
setAlias
(
'@yii/debug'
,
"
$extension
/debug"
);
Yii
::
setAlias
(
'@yii/elasticsearch'
,
"
$extension
/elasticsearch"
);
Yii
::
setAlias
(
'@yii/gii'
,
"
$extension
/gii"
);
Yii
::
setAlias
(
'@yii/jui'
,
"
$extension
/jui"
);
Yii
::
setAlias
(
'@yii/mongodb'
,
"
$extension
/mongodb"
);
Yii
::
setAlias
(
'@yii/redis'
,
"
$extension
/redis"
);
Yii
::
setAlias
(
'@yii/smarty'
,
"
$extension
/smarty"
);
Yii
::
setAlias
(
'@yii/sphinx'
,
"
$extension
/sphinx"
);
Yii
::
setAlias
(
'@yii/swiftmailer'
,
"
$extension
/swiftmailer"
);
$extensionPath
=
"
$root
/extensions/yii"
;
foreach
(
scandir
(
$extensionPath
)
as
$extension
)
{
if
(
ctype_alpha
(
$extension
)
&&
is_dir
(
$extensionPath
.
'/'
.
$extension
))
{
Yii
::
setAlias
(
"@yii/
$extension
"
,
"
$extensionPath
/
$extension
"
);
}
}
$except
=
[
'/apps/'
,
'/build/'
,
'/docs/'
,
'/extensions/yii/codeception/'
,
'/extensions/yii/composer/'
,
'/extensions/yii/twig/'
,
'/tests/'
,
'/vendor/'
,
];
...
...
composer.json
View file @
03a88e4f
...
...
@@ -86,6 +86,7 @@
"ext-mongo"
:
"required by yii2-mongo extension"
,
"ext-pdo"
:
"required by yii2-sphinx extension"
,
"ext-pdo_mysql"
:
"required by yii2-sphinx extension"
,
"fzaninotto/faker"
:
"required by yii2-faker extension"
,
"imagine/imagine"
:
"required by yii2-imagine extension"
,
"smarty/smarty"
:
"required by yii2-smarty extension"
,
"swiftmailer/swiftmailer"
:
"required by yii2-swiftmailer extension"
,
...
...
extensions/README.md
View file @
03a88e4f
...
...
@@ -10,4 +10,3 @@ To add a new extension named `xyz` (must be in lower case), take the following s
*
`LICENSE.md`
3.
ask Qiang to create a subsplit for
`xyz`
and a composer package named
`yii2-xyz`
;
4.
modify
`/composer.json`
and add
`xyz`
to the
`replace`
section;
5.
modify
`/build/controllers/PhpDocController.php`
about the method
`actionProperty()`
.
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