/** * Cleanup when SIGINT/SIGTERM is received * * @param int $signal */ public static function cleanupElasticsearch($signal = null) { // delete all indices after test self::$mappingManager->deleteAllIndices(); self::$mappingManager->deleteAllTemplates(); if (in_array($signal, [SIGINT, SIGTERM])) { exit; } }
/** * @inheritdoc */ protected function execute(InputInterface $input, OutputInterface $output) { $this->mappingManager->update(); }