setName('foq:elastica:reset') ->setDescription('Recreates all indexes'); } /** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeLn('Reset all indexes'); $this->container->get('foq_elastica.reseter')->reset(); $output->writeln('Done'); } }