} /**
* {@inheritdoc}
*/
protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $this->io =
new ShopwareStyle($input,
$output);
$context = Context::
createDefaultContext();
$this->
initializeCommand($input,
$context);
/** @var RepositoryIterator<MediaCollection> $mediaIterator */
$mediaIterator =
new RepositoryIterator($this->mediaRepository,
$context,
$this->
createCriteria());
if (!
$this->isAsync
) { $this->
generateSynchronous($mediaIterator,
$context);
} else { $this->
generateAsynchronous($mediaIterator,
$context);
} return self::SUCCESS;
}