コード例 #1
0
 /**
  * @see xfIndexCommon
  */
 protected final function postSetup()
 {
     if (!$this->engine || !$this->engine instanceof xfEngine) {
         throw new xfException('Index "' . $this->getName() . '" must have an engine');
     }
     parent::postSetup();
 }
コード例 #2
0
 /**
  * @see xfIndexCommon
  */
 protected final function postSetup()
 {
     // configure all indices
     foreach ($this->indices as $index) {
         if (!$index->isSetup()) {
             $index->setServiceRegistry($this->getServiceRegistry());
         }
         $index->setLogger($this->getLogger());
     }
     parent::postSetup();
 }