#
# Module services
#
# Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
# See https://www.x-cart.com/license-agreement.html for license details.

services:
  _defaults:
    autowire: true
    autoconfigure: true

  XC\ATD\Core\Data\Adapter\Product\TrialProductAdapter:
    decorates: XC\ATD\Core\Data\Adapter\Product\IProductAdapter
    arguments:
      $productAdapter: '@.inner'
      $enabled: '@=parameter("auto_trial.end_date") ? true : false'
      $productsLimit: '%auto_trial.products_limit%'
