/**
* @param RepositoryIterator<MediaCollection> $mediaIterator
*/
private function generateSynchronous(RepositoryIterator
$mediaIterator, Context
$context): void
{ $totalMediaCount =
$mediaIterator->
getTotal();
$this->io->
comment(sprintf('Generating Thumbnails for %d files. This may take some time...',
$totalMediaCount));
$this->io->
progressStart($totalMediaCount);
$result =
$this->
generateThumbnails($mediaIterator,
$context);
$this->io->
progressFinish();
$this->io->
table( ['Action', 'Number of Media Entities'
],
[ ['Generated',
$result['generated'
]],
['Skipped',
$result['skipped'
]],
['Errors',
$result['errored'
]],
] );