07/01
2018
interoit base DbOrm.
composer require php-dk/yii2-phpstorm:@dev --dev, (*1)
console-local.php, (*2)
return [ 'modules' => [ 'tips' => [ 'class' => \phpdk\yii2PhpStorm\Module::class, 'config' => \yii\helpers\ArrayHelper::merge( require 'main.php', require 'main-local.php', ... ) ] ], ];
./yii tips/gen/application - generate Application class ./yii tips/gen/meta - generate .phpstorm.meta.php file in basePath ./yii tips/gen - all, (*3)
После обновления будут доступны подсказки для имён модулей, и компоненты, .phpstorm.meta.php - начинает работать только после перезапуска IDE., (*4)
Yii::$app->component->... Yii::$app->getModule('...')->...
PhpStorm "multiple definitions exist for class" To hide this message:, (*5)
Find a duplicate class file (not created by this generator), for example: vendor/yiisoft/yii/YiiBase.php Mark it as a plain text in file context menu., (*6)