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

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.     public function __construct(ProductConfiguratorLoader $decorated)
  15.     {
  16.         $this->loader $decorated;
  17.     }
  18.     /**
  19.      * @throws InconsistentCriteriaIdsException
  20.      */
  21.     public function load(SalesChannelProductEntity $productSalesChannelContext $context): PropertyGroupCollection
  22.     {
  23.         return $this->loader->load($product$context);
  24.     }
  25. }