6 declare(strict_types=1);
28 private $getSkusByProductIds;
33 private $websiteRepository;
38 private $stockResolver;
43 private $checkItemsQuantity;
48 private $getProductTypesBySkus;
53 private $isSourceItemManagementAllowedForProductType;
71 $this->getSkusByProductIds = $getSkusByProductIds;
73 $this->stockResolver = $stockResolver;
74 $this->checkItemsQuantity = $checkItemsQuantity;
75 $this->getProductTypesBySkus = $getProductTypesBySkus;
76 $this->isSourceItemManagementAllowedForProductType = $isSourceItemManagementAllowedForProductType;
107 if (
false === $this->isSourceItemManagementAllowedForProductType->execute(
$productTypes[$sku])) {
115 $this->checkItemsQuantity->execute($itemsBySku, $stockId);
aroundRegisterProductsSale(RegisterProductSaleInterface $subject, callable $proceed, $items, $websiteId=null)
__construct(GetSkusByProductIdsInterface $getSkusByProductIds, WebsiteRepositoryInterface $websiteRepository, StockResolverInterface $stockResolver, CheckItemsQuantity $checkItemsQuantity, GetProductTypesBySkusInterface $getProductTypesBySkus, IsSourceItemManagementAllowedForProductTypeInterface $isSourceItemManagementAllowedForProductType)
if(!isset($_GET['website_code'])) $websiteCode