Add create databox console command

This commit is contained in:
Thibaud Fabre
2016-10-14 14:30:33 +02:00
parent a040dc2aea
commit efc5842e06
11 changed files with 348 additions and 82 deletions

View File

@@ -22,12 +22,12 @@ class IndexCreateCommand extends Command
{
$this
->setName('searchengine:index:create')
->setDescription('Creates search index')
;
->setDescription('Creates search index');
}
protected function doExecute(InputInterface $input, OutputInterface $output)
{
/** @var Indexer $indexer */
$indexer = $this->container['elasticsearch.indexer'];
if ($indexer->indexExists()) {