protected function execute(InputInterface
$input, OutputInterface
$output) { /** @var EsBackendIndexer $indexer */
$indexer =
$this->container->
get('shopware_es_backend.indexer'
);
$helper =
new ConsoleProgressHelper($output);
$evaluation =
$this->container->
get(\Shopware\Bundle\ESIndexingBundle\Console\EvaluationHelperInterface::
class);
$evaluation->
setOutput($output) ->
setActive(!
$input->
getOption('no-evaluation'
)) ->
setStopOnError($input->
getOption('stop-on-error'
));
$indexer->
index($helper);
return 0;
}}