|
|
@ -44,22 +44,26 @@ class PhpDocController extends Controller |
|
|
|
$except = []; |
|
|
|
$except = []; |
|
|
|
if ($root === null) { |
|
|
|
if ($root === null) { |
|
|
|
$root = dirname(dirname(YII_PATH)); |
|
|
|
$root = dirname(dirname(YII_PATH)); |
|
|
|
Yii::setAlias('@yii/bootstrap', $root . '/extensions/bootstrap'); |
|
|
|
$extension = "$root/extensions/yii"; |
|
|
|
Yii::setAlias('@yii/debug', $root . '/extensions/debug'); |
|
|
|
Yii::setAlias('@yii/authclient', "$extension/authclient"); |
|
|
|
Yii::setAlias('@yii/elasticsearch', $root . '/extensions/elasticsearch'); |
|
|
|
Yii::setAlias('@yii/bootstrap', "$extension/bootstrap"); |
|
|
|
Yii::setAlias('@yii/gii', $root . '/extensions/gii'); |
|
|
|
Yii::setAlias('@yii/debug', "$extension/debug"); |
|
|
|
Yii::setAlias('@yii/jui', $root . '/extensions/jui'); |
|
|
|
Yii::setAlias('@yii/elasticsearch', "$extension/elasticsearch"); |
|
|
|
Yii::setAlias('@yii/redis', $root . '/extensions/redis'); |
|
|
|
Yii::setAlias('@yii/gii', "$extension/gii"); |
|
|
|
Yii::setAlias('@yii/smarty', $root . '/extensions/smarty'); |
|
|
|
Yii::setAlias('@yii/jui', "$extension/jui"); |
|
|
|
Yii::setAlias('@yii/sphinx', $root . '/extensions/sphinx'); |
|
|
|
Yii::setAlias('@yii/mongodb', "$extension/mongodb"); |
|
|
|
Yii::setAlias('@yii/swiftmailer', $root . '/extensions/swiftmailer'); |
|
|
|
Yii::setAlias('@yii/redis', "$extension/redis"); |
|
|
|
Yii::setAlias('@yii/twig', $root . '/extensions/twig'); |
|
|
|
Yii::setAlias('@yii/smarty', "$extension/smarty"); |
|
|
|
|
|
|
|
Yii::setAlias('@yii/sphinx', "$extension/sphinx"); |
|
|
|
|
|
|
|
Yii::setAlias('@yii/swiftmailer', "$extension/swiftmailer"); |
|
|
|
|
|
|
|
|
|
|
|
$except = [ |
|
|
|
$except = [ |
|
|
|
'/apps/', |
|
|
|
'/apps/', |
|
|
|
'/build/', |
|
|
|
'/build/', |
|
|
|
'/docs/', |
|
|
|
'/docs/', |
|
|
|
'/extensions/composer/', |
|
|
|
'/extensions/yii/codeception/', |
|
|
|
|
|
|
|
'/extensions/yii/composer/', |
|
|
|
|
|
|
|
'/extensions/yii/twig/', |
|
|
|
'/tests/', |
|
|
|
'/tests/', |
|
|
|
'/vendor/', |
|
|
|
'/vendor/', |
|
|
|
]; |
|
|
|
]; |
|
|
@ -375,4 +379,4 @@ class PhpDocController extends Controller |
|
|
|
{ |
|
|
|
{ |
|
|
|
return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]); |
|
|
|
return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|