protected function initializeProviders()
{
// TODO: this is a hotfix for an already initialized provider queue on action re-entry
if ($this->_p !== []) {
return;
}
if ($this->providerList) {
foreach ($this->providerList as $class) {
$class = trim($class);
if (!$class) {
continue;
}
$obj = \Yii::createObject(['class' => $class]);
$obj->generator = $this;
$this->_p[] = $obj;
//\Yii::trace("Initialized provider '{$class}'", __METHOD__);
}
}
\Yii::trace("CRUD providers initialized for model '{$this->modelClass}'", __METHOD__);
}