/** * @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); } }
/** * @return void */ public function tearDown() { $searchMapCleaner = new IndexMapCleaner(self::TARGET_DIRECTORY); $searchMapCleaner->cleanDirectory(); }