private readonly EntityRepository
$defaultFolderRepo ) { } public function countNotUsedMedia(Context
$context): int
{ Feature::
triggerDeprecationOrThrow( 'v6.6.0.0',
sprintf('%s is deprecated and will be removed in v6.6.0.0. Use %s instead.', self::
class, UnusedMediaPurger::
class),
);
$criteria =
$this->
createFilterForNotUsedMedia($context);
$criteria->
setLimit(1
);
$criteria->
setTotalCountMode(Criteria::TOTAL_COUNT_MODE_EXACT
);
return $this->mediaRepo->
search($criteria,
$context)->
getTotal();
} public function deleteNotUsedMedia(Context
$context): void
{ Feature::
triggerDeprecationOrThrow( 'v6.6.0.0',
sprintf('%s is deprecated and will be removed in v6.6.0.0. Use %s instead.', self::
class, UnusedMediaPurger::
class),
);