schmunk42\giiant\generators\crud\ProviderTrait::initializeProviders PHP 메소드

initializeProviders() 보호된 메소드

protected initializeProviders ( )
    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__);
    }