/**
  * @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();
 }
 /**
  * @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();
 }