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;
} private function initializeCommand(InputInterface
$input, Context
$context): void
{ $this->folderFilter =
$this->
getFolderFilterFromInput($input,
$context);
$this->batchSize =
$this->
getBatchSizeFromInput($input);