CodeExplorer ProductPricingHook example
public function calculate(iterable
$products, SalesChannelContext
$context): void
{ $this->decorated->
calculate($products,
$context);
$proxies =
[];
foreach ($products as $product) { $proxies[$product->
get('id'
)] =
new ProductProxy($product,
$context,
$this->priceStubs
);
} $this->scriptExecutor->
execute(new ProductPricingHook($proxies,
$context));
}}