/**
* {@inheritdoc}
*/
protected function execute(InputInterface
$input, OutputInterface
$output) { $streamIds =
[];
if ($streamId =
$input->
getOption('streamId'
)) { $streamIds =
[$streamId];
} $streams =
$this->
getStreams($streamIds);
foreach ($streams as $stream) { $output->
writeln("\n## Indexing Customer Stream: " .
$stream->
getName() . ' ##'
);
$this->container->
get(\Shopware\Components\Api\Resource\CustomerStream::
class)->
indexStream($stream);
} return 0;
} /**
* @param array<int> $ids
*
* @return CustomerStream[]
*/