Merge reset and populate commands
This commit is contained in:
parent
65dbe74f32
commit
40827bb2a1
2 changed files with 4 additions and 37 deletions
|
|
@ -29,9 +29,11 @@ class PopulateCommand extends Command
|
|||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$output->writeln('Populating indexes');
|
||||
$output->writeln('Reseting indexes');
|
||||
$this->container->get('foq_elastica.reseter')->reset();
|
||||
|
||||
$populator = $this->container->get('foq_elastica.populator')->populate();
|
||||
$output->writeln('Populating indexes');
|
||||
$this->container->get('foq_elastica.populator')->populate();
|
||||
|
||||
$output->writeln('Done');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue