mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +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:
		 devskyfly
					devskyfly
				
			
				
					committed by
					
						 Alexander Makarov
						Alexander Makarov
					
				
			
			
				
	
			
			
			 Alexander Makarov
						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