Merge reset and populate commands

This commit is contained in:
ornicar 2011-04-13 16:22:50 -07:00
commit 40827bb2a1
2 changed files with 4 additions and 37 deletions

View file

@ -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');
}