Mar 23, 2017

insperedia

Yii2 PhpStorm plugin was updated

New version provides wide functionality for code completion in Yii arrays. The main improvement is about supporting Yii::createObject() and Object::__construct(). Those methods are widely used in the framework so there are many places where code completion will work much better in these cases:

  • Array in $config parameter of yii\base\Object or its descendants constructor
  • Array that has "class" key containing valid class representation: a fully qualified class name as a string, ClassName::class or Class::className()
  • Array value which refers to one of standard Yii components such as "db", "request", or "mailer". File with this array should be located in a directory called "config"
  • WidgetClass::widget() and WidgetClass::begin() calls if WidgetClass is a descendant of yii\base\Widget
  • $field->widget() method call on yii\widgets\ActiveField and its descendants
  • Inside array in GridView "columns" key
  • Yii::createObject() method

New developer has joined the project so we expect the plugin to develop faster making Yii framework even better.

Comments (1)

  1. Mar 23, 2017

    Good changes. I wasn't able to play enough with preview version but I'll definitely install 0.3.17.0.