yii\gii\Module::coreGenerators PHP Method

coreGenerators() protected method

Returns the list of the core code generator configurations.
protected coreGenerators ( ) : array
return array the list of the core code generator configurations.
    protected function coreGenerators()
    {
        return ['model' => ['class' => 'yii\\gii\\generators\\model\\Generator'], 'crud' => ['class' => 'yii\\gii\\generators\\crud\\Generator'], 'controller' => ['class' => 'yii\\gii\\generators\\controller\\Generator'], 'form' => ['class' => 'yii\\gii\\generators\\form\\Generator'], 'module' => ['class' => 'yii\\gii\\generators\\module\\Generator'], 'extension' => ['class' => 'yii\\gii\\generators\\extension\\Generator']];
    }

Usage Example

示例#1
0
 /**
  * @inheritdoc
  */
 protected function coreGenerators()
 {
     $res = parent::coreGenerators();
     $res['extension']['class'] = 'hiqdev\\hiqgii\\generators\\extension\\Generator';
     $res['module']['class'] = 'hiqdev\\hiqgii\\generators\\module\\Generator';
     return $res;
 }
All Usage Examples Of yii\gii\Module::coreGenerators