vendor/shopware/storefront/Page/Product/Configurator/ProductPageConfiguratorLoader.php line 29

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Product\Configurator;
  3. use Shopware\Core\Content\Product\SalesChannel\Detail\ProductConfiguratorLoader;
  4. use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
  5. use Shopware\Core\Content\Property\PropertyGroupCollection;
  6. use Shopware\Core\Framework\DataAbstractionLayer\Exception\InconsistentCriteriaIdsException;
  7. use Shopware\Core\System\SalesChannel\SalesChannelContext;
  8. class ProductPageConfiguratorLoader extends ProductConfiguratorLoader
  9. {
  10.     /**
  11.      * @var ProductConfiguratorLoader
  12.      */
  13.     private $loader;
  14.     /**
  15.      * @internal
  16.      */
  17.     public function __construct(ProductConfiguratorLoader $decorated)
  18.     {
  19.         $this->loader $decorated;
  20.     }
  21.     /**
  22.      * @throws InconsistentCriteriaIdsException
  23.      */
  24.     public function load(SalesChannelProductEntity $productSalesChannelContext $context): PropertyGroupCollection
  25.     {
  26.         return $this->loader->load($product$context);
  27.     }
  28. }