3namespace Bitrix\Catalog\v2\IoC;
5use Bitrix\Catalog\v2\Facade\Repository;
6use Bitrix\Catalog\v2\Iblock\IblockInfo;
7use Bitrix\Catalog\v2\Product\ProductFactory;
8use Bitrix\Catalog\v2\Product\ProductRepositoryContract;
9use Bitrix\Catalog\v2\Sku\SkuFactory;
10use Bitrix\Catalog\v2\Sku\SkuRepositoryContract;
11use Bitrix\Main\ObjectNotFoundException;
24 private static $container;
26 private function __construct()
32 if (static::$container ===
null)
38 return static::$container;
44 public static function get($id,
array $args = [])
46 return static::getContainer()->get($id, $args);
54 return static::getContainer()->make($id, $args);
81 $iblockInfo = static::getIblockInfo(
$iblockId);
85 $iblockId = $iblockInfo->getProductIblockId();
107 $iblockInfo = static::getIblockInfo(
$iblockId);
111 $iblockId = $iblockInfo->getProductIblockId();
125 $iblockInfo = static::getIblockInfo(
$iblockId);
127 if ($iblockInfo && $iblockInfo->canHaveSku())
129 $iblockId = $iblockInfo->getProductIblockId();
146 $iblockInfo = static::getIblockInfo(
$iblockId);
150 $iblockId = $iblockInfo->getSkuIblockId();
static buildFromConfig(string $customPath=null)
static getProductFactory(int $iblockId)
static make($id, array $args=[])
static getSkuFactory(int $iblockId)
static getSkuRepository(int $iblockId)
static getIblockInfo(int $iblockId)
static getProductRepository(int $iblockId)
static getRepositoryFacade()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)