hl56 / yii2-ide-helper
Yii2 IDE Helper,为所有组件生成正确的PHPDocs,以提高自动补全功能。
1.0.1
2022-04-18 05:58 UTC
Requires
- php: >=7.0.0
- yiisoft/yii2: *
README
安装
使用以下命令通过composer安装此包
composer require hl56/yii2-ide-helper --dev
用法
更新composer后,将组件添加到控制台应用程序的config文件中的components和bootstrap数组中
'bootstrap' => ['log', 'ideHelper'], 'components' => [ 'ideHelper' => [ 'class' => 'hl56\IdeHelper\IdeHelper', ], ],
现在,您可以通过以下命令生成ide helper文件
./yii ide-helper/generate
选项
'ideHelper' => [ 'class' => 'hl56\IdeHelper\IdeHelper', 'rootDir' => dirname(dirname(__DIR__)), ],
默认配置文件
protected $defaultConfigFiles = [ 'common/config/main.php', 'common/config/main-local.php', 'frontend/config/main.php', 'frontend/config/main-local.php', 'backend/config/main.php', 'backend/config/main-local.php', ];