Commit 7570afde by Carsten Brandt

fixed the build command after controller namespace changes

parent c694d32e
...@@ -23,9 +23,12 @@ if (file_exists($vendor)) { ...@@ -23,9 +23,12 @@ if (file_exists($vendor)) {
} }
require(__DIR__ . '/../framework/Yii.php'); require(__DIR__ . '/../framework/Yii.php');
Yii::setAlias('@yii/build', __DIR__);
$application = new yii\console\Application([ $application = new yii\console\Application([
'id' => 'yii-build', 'id' => 'yii-build',
'basePath' => __DIR__, 'basePath' => __DIR__,
'controllerNamespace' => 'yii\build\controllers', 'controllerNamespace' => 'yii\build\controllers',
'enableCoreCommands' => false,
]); ]);
$application->run(); $application->run();
...@@ -12,6 +12,8 @@ use yii\console\Exception; ...@@ -12,6 +12,8 @@ use yii\console\Exception;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
/** /**
* Creates a class map for the core Yii classes.
*
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*/ */
......
...@@ -61,11 +61,12 @@ class PhpDocController extends Controller ...@@ -61,11 +61,12 @@ class PhpDocController extends Controller
'/extensions/codeception/DbTestCase.php', '/extensions/codeception/DbTestCase.php',
'/extensions/composer/', '/extensions/composer/',
'/extensions/gii/components/DiffRendererHtmlInline.php', '/extensions/gii/components/DiffRendererHtmlInline.php',
'/extensions/gii/generators/extension/templates/*',
'/extensions/twig/TwigSimpleFileLoader.php', '/extensions/twig/TwigSimpleFileLoader.php',
'/framework/BaseYii.php', '/framework/BaseYii.php',
'/framework/Yii.php', '/framework/Yii.php',
'/tests/', 'tests/',
'/vendor/', 'vendor/',
]; ];
} }
$root = FileHelper::normalizePath($root); $root = FileHelper::normalizePath($root);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment