示例#1
0
 /**
  * Initializes the generators.
  */
 protected function initGenerators()
 {
     $this->generators = \CMap::mergeArray(self::$_builtInGenerators, $this->generators);
     $this->providers = \CMap::mergeArray(self::$_builtInProviders, $this->providers);
     Generator::setConfig(\Yii::createComponent(array('class' => '\\crisu83\\yii_caviar\\components\\Config', 'basePath' => $this->getTempPath(), 'generators' => $this->generators, 'providers' => $this->providers, 'templates' => $this->templates, 'attributes' => array('template' => $this->defaultTemplate))));
 }