Yii2 Modules Commands Are Not Showing In Console

[Solved] Yii2 Modules Commands Are Not Showing In Console | Php Frameworks Yii - Code Explorer | yomemimo.com
Question : yii2 modules commands are not showing in console

Answered by : muhammad-waseem

#Do this in bootstrap file of your module, you just have to register the consoleControllerNamespace public function bootstrap($app) { if ($app instanceof \yii\console\Application) { $app->getModule('test')->controllerNamespace = 'mymodules\test\console'; } }

Source : https://forum.yiiframework.com/t/command-line-from-module-double-name/79376 | Last Update : Thu, 13 Jan 22

Answers related to yii2 modules commands are not showing in console

Code Explorer Popular Question For Php Frameworks Yii