#
# Module services
#
# Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
# See https://www.x-cart.com/license-agreement.html for license details.
x_cart:
  clean_urls:
    aliases:
      bestsellers: bestsellers
dto_generator:
  entities:
    dto:
      XCart\Logic\Action\Storefront\Product\GetList\DTO\Request\Filter:
        fields:
          bestsellers:
            type: BooleanValue
            nullable: true

      XCart\DTO\Doctrine\Storefront\Product\Filter:
        fields:
          bestsellers:
            type: BooleanValue
            nullable: true
services:
  _defaults:
    autowire: true
    autoconfigure: true
  xcart.data_source.product.read.query_builder_filter.enricher.filter_applier.resolver.decorator.bestsellers:
    class: CDev\Bestsellers\Logic\Action\Storefront\Product\GetList\Resolver\BestsellersFilterApplierResolverDecorator
    decorates: xcart.data_source.product.read.query_builder_filter.enricher.filter_applier.resolver
    arguments:
      $inner: '@.inner'
