|
|
@ -62,6 +62,8 @@ class ModuleController extends Controller |
|
|
|
{ |
|
|
|
{ |
|
|
|
$path = \Yii::getAlias('@common/modules/' . $name); |
|
|
|
$path = \Yii::getAlias('@common/modules/' . $name); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo ConsoleColor::log('Installing module: ', 'yellow') . ConsoleColor::log($name, 'white') . PHP_EOL; |
|
|
|
|
|
|
|
|
|
|
|
// check exists |
|
|
|
// check exists |
|
|
|
if (file_exists($path)) { |
|
|
|
if (file_exists($path)) { |
|
|
|
echo ConsoleColor::log('Module ' . $name . ' already exists', 'red') . PHP_EOL; |
|
|
|
echo ConsoleColor::log('Module ' . $name . ' already exists', 'red') . PHP_EOL; |
|
|
|