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

  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\Framework\Log\Package;
  8. use Shopware\Core\System\SalesChannel\SalesChannelContext;
  9. #[Package('storefront')]
  10. class ProductPageConfiguratorLoader extends ProductConfiguratorLoader
  11. {
  12.     /**
  13.      * @internal
  14.      */
  15.     public function __construct(private readonly ProductConfiguratorLoader $loader)
  16.     {
  17.     }
  18.     /**
  19.      * @throws InconsistentCriteriaIdsException
  20.      */
  21.     public function load(SalesChannelProductEntity $productSalesChannelContext $context): PropertyGroupCollection
  22.     {
  23.         return $this->loader->load($product$context);
  24.     }
  25. }