Пример #1
0
 /**
  * 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;
     }
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->mappingManager->update();
 }