• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/IoC/ServiceContainer.php
  • Класс: BitrixCatalogv2IoCServiceContainer
  • Вызов: ServiceContainer::getSkuRepository
static function getSkuRepository(int $iblockId): ?SkuRepositoryContract
{
	$iblockInfo = static::getIblockInfo($iblockId);

	if ($iblockInfo && $iblockInfo->canHaveSku())
	{
		$iblockId = $iblockInfo->getProductIblockId();

		return static::make(Dependency::SKU_REPOSITORY, compact('iblockId'));
	}

	return null;
}