Пример #1
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);
     }
 }
Пример #2
0
 /**
  * @return void
  */
 public function tearDown()
 {
     $searchMapCleaner = new IndexMapCleaner(self::TARGET_DIRECTORY);
     $searchMapCleaner->cleanDirectory();
 }