I’m trying to extend the Gii model generator for some custom logic around what fields to make required, and what defaults to specify, etc.
I’ve tried setting this in my main-local.php config:
$config['modules']['classMap'] = [[
'yii\gii\generators\model\Generator' => 'common\myTemplates\model\Generator.php'
]];
But it doesn’t appear to work. Can i modify the classmap in this way, or do i do it directly via Yii::$classMap ?