yacon / yii2-ide-helper
Yii2 IDE Helper,为所有组件生成正确的PHPDocs,以改善自动补全。
1.0
2023-10-31 04:49 UTC
Requires
- php: >=7.0.0
- yiisoft/yii2: *
README
安装
使用以下命令通过composer安装此包
composer require yacon/yii2-ide-helper --dev
用法
更新composer后,将组件添加到控制台应用程序的config文件中的components
数组和bootstrap
数组中
'bootstrap' => ['log', 'ideHelper'], 'components' => [ 'ideHelper' => [ 'class' => 'yacon\IdeHelper\IdeHelper', ], ],
现在可以通过以下命令生成ide辅助文件
./yii ide-helper/generate
选项
'ideHelper' => [ 'class' => 'yacon\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', ];