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

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

		return static::get(Dependency::PRODUCT_FACTORY, compact('iblockId'));
	}

	return null;
}