} public function getDecorated(): AbstractProductListRoute
{ throw new DecorationPatternException(self::
class);
} #[Route(path: '/store-api/product', name: 'store-api.product.search', methods: ['GET', 'POST'], defaults: ['_entity' => 'product'])]
public function load(Criteria
$criteria, SalesChannelContext
$context): ProductListResponse
{ return new ProductListResponse($this->productRepository->
search($criteria,
$context));
}}