Skip to content

Commit

Permalink
Merge branch 'release/7.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
susannemoog committed Apr 17, 2021
2 parents ecf3841 + f707d5e commit 1486568
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Commands/Index/CornifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output): int
Expand All @@ -63,6 +64,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
$this->indexService->initIndex($indexName);
$this->indexService->copyData($indexName . $suffix, $indexName);
}

return 0;
}

Expand Down
3 changes: 3 additions & 0 deletions Classes/Commands/Index/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
Expand All @@ -46,8 +47,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->indexService->initIndices();
} catch (\InvalidArgumentException $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');

return 1;
}

return 0;
}
}
2 changes: 2 additions & 0 deletions Classes/Commands/Index/RemapCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ protected function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
Expand All @@ -67,6 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('Remapping and recreating all configured indices.');
$this->indexService->remapAll($force);
}

return 0;
}
}
1 change: 1 addition & 0 deletions Classes/Commands/Mapping/CompareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
{
parent::execute($input, $output);
$this->configurationService->compareMappingConfiguration($input->getArgument('indexName'), $this->indexService->getIndex());

return 0;
}
}
1 change: 1 addition & 0 deletions Classes/Commands/Mapping/ShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->write(
$dump
);

return 0;
}
}
2 changes: 2 additions & 0 deletions Classes/Commands/Type/TruncateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
try {
$this->documentTypeService->deleteDocumentsOfType();

return 0;
} catch (\InvalidArgumentException $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');

return 1;
}
}
Expand Down

0 comments on commit 1486568

Please sign in to comment.