Пример #1
0
 protected function registerCoreComponents()
 {
     parent::registerCoreComponents();
     $components = array('session' => array('class' => 'CHttpSession'), 'assetManager' => array('class' => 'CAssetManager'), 'user' => array('class' => 'CWebUser'), 'themeManager' => array('class' => 'CThemeManager'), 'authManager' => array('class' => 'CPhpAuthManager'), 'clientScript' => array('class' => 'CClientScript'), 'widgetFactory' => array('class' => 'CWidgetFactory'));
     $this->setComponents($components);
 }
Пример #2
0
 protected function registerCoreComponents()
 {
     //注册核心组件
     parent::registerCoreComponents();
 }
 /**
  * Registers the core application components.
  * This method overrides the parent implementation by registering additional core components.
  */
 protected function registerCoreComponents()
 {
     parent::registerCoreComponents();
     $components = array('gearmanWorker' => array('class' => 'EGearmanWorker'), 'gearmanRouter' => array('class' => 'EGearmanRouter'));
     $this->setComponents($components);
 }
Пример #4
0
 /**
  * Registers the core application components.
  * This method overrides the parent implementation by registering additional core components.
  * @see setComponents
  */
 protected function registerCoreComponents()
 {
     parent::registerCoreComponents();
     $components = array('worker' => array('class' => 'WorkerDaemon'));
     $this->setComponents($components);
 }