setName('foq:elastica:populate') ->setDescription('Populates search indexes from providers'); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln('Populating indexes'); $populator = $this->container->get('foq_elastica.populator'); $populator->populate(); $output->writeln('Done'); } }