From 8d04158f16fce4224d9a394594b306037cd5bfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20P=C3=A9rez?= Date: Tue, 7 Nov 2017 13:29:58 +0100 Subject: [PATCH] Add @bower and @npm aliases in config/console.php You need them if you add the `yii\apidoc\commands\ApiController` and `GuideController` to your console application command map and you run them inside of your applications console app, as said in the yiisoft/yii2-apidoc 's README.md: https://github.com/yiisoft/yii2-apidoc/blob/master/README.md --- config/console.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/console.php b/config/console.php index 6660dd4..1b8d947 100644 --- a/config/console.php +++ b/config/console.php @@ -8,6 +8,10 @@ $config = [ 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'app\commands', + 'aliases' => [ + '@bower' => '@vendor/bower-asset', + '@npm' => '@vendor/npm-asset', + ], 'components' => [ 'cache' => [ 'class' => 'yii\caching\FileCache',