Commit 7570afde by Carsten Brandt

fixed the build command after controller namespace changes

parent c694d32e
......@@ -23,9 +23,12 @@ if (file_exists($vendor)) {
}
require(__DIR__ . '/../framework/Yii.php');
Yii::setAlias('@yii/build', __DIR__);
$application = new yii\console\Application([
'id' => 'yii-build',
'basePath' => __DIR__,
'controllerNamespace' => 'yii\build\controllers',
'enableCoreCommands' => false,
]);
$application->run();
......@@ -12,6 +12,8 @@ use yii\console\Exception;
use yii\helpers\FileHelper;
/**
* Creates a class map for the core Yii classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
......
......@@ -61,11 +61,12 @@ class PhpDocController extends Controller
'/extensions/codeception/DbTestCase.php',
'/extensions/composer/',
'/extensions/gii/components/DiffRendererHtmlInline.php',
'/extensions/gii/generators/extension/templates/*',
'/extensions/twig/TwigSimpleFileLoader.php',
'/framework/BaseYii.php',
'/framework/Yii.php',
'/tests/',
'/vendor/',
'tests/',
'vendor/',
];
}
$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