Better logging for the population command
This commit is contained in:
parent
7cb9d9ee71
commit
8f3b39d135
4 changed files with 17 additions and 6 deletions
|
|
@ -32,8 +32,13 @@ class PopulateCommand extends Command
|
|||
$output->writeln('Reseting indexes');
|
||||
$this->container->get('foq_elastica.reseter')->reset();
|
||||
|
||||
$output->writeln('Setting mappings');
|
||||
$this->container->get('foq_elastica.mapping_setter')->setMappings();
|
||||
|
||||
$output->writeln('Populating indexes');
|
||||
$this->container->get('foq_elastica.populator')->populate();
|
||||
$this->container->get('foq_elastica.populator')->populate(function($text) use ($output) {
|
||||
$output->writeLn($text);
|
||||
});
|
||||
|
||||
$output->writeln('Done');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue