mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Add note about adding module to console config in order to register commands to Russian guide [skip ci]
This commit is contained in:
committed by
Alexander Makarov
parent
405c83cf34
commit
b98dc9eb2e
@ -131,6 +131,16 @@ public function init()
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Для отображения консольных команд модуля в списке команд приложения при ввыполнении ./yii необходимо создать псевдоним модуля:
|
||||||
|
|
||||||
|
```php
|
||||||
|
public function init()
|
||||||
|
{
|
||||||
|
parent::init();
|
||||||
|
Yii::setAlias("@vendor/moduleName", __DIR__);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Ваши команды будут доступны из командной строки как:
|
Ваши команды будут доступны из командной строки как:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user