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

	if ($iblockInfo)
	{
		$iblockId = $iblockInfo->getSkuIblockId();
		if ($iblockId)
		{
			return static::get(Dependency::SKU_FACTORY, compact('iblockId'));
		}
	}

	return null;
}