Example #1
0
 /**
  * @return void
  */
 public function install()
 {
     $indexDefinitions = $this->indexDefinitionLoader->loadIndexDefinitions();
     foreach ($indexDefinitions as $indexDefinition) {
         $this->createIndex($indexDefinition);
     }
 }
Example #2
0
 /**
  * @return void
  */
 public function install()
 {
     $this->indexMapCleaner->cleanDirectory();
     $indexDefinitions = $this->indexDefinitionLoader->loadIndexDefinitions();
     foreach ($indexDefinitions as $indexDefinition) {
         $this->messenger->info(sprintf('Generating index map classes for index: "%s"', $indexDefinition->getIndexName()));
         $this->indexMapGenerator->generate($indexDefinition);
     }
 }