<?php declare(strict_types=1);
namespace Shopware\Storefront\Page\Product\Configurator;
use Shopware\Core\Content\Product\SalesChannel\Detail\ProductConfiguratorLoader;
use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
use Shopware\Core\Content\Property\PropertyGroupCollection;
use Shopware\Core\Framework\DataAbstractionLayer\Exception\InconsistentCriteriaIdsException;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
class ProductPageConfiguratorLoader extends ProductConfiguratorLoader
{
/**
* @var ProductConfiguratorLoader
*/
private $loader;
/**
* @internal
*/
public function __construct(ProductConfiguratorLoader $decorated)
{
$this->loader = $decorated;
}
/**
* @throws InconsistentCriteriaIdsException
*/
public function load(SalesChannelProductEntity $product, SalesChannelContext $context): PropertyGroupCollection
{
return $this->loader->load($product, $context);
}
}