#
# 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\Keystone\Core\Gateway\ProductData\TrialProductDataGatewayImplementation:
    decorates: XC\Keystone\Core\Gateway\ProductData\ProductDataGateway
    arguments:
      $productDataGateway: '@.inner'
      $enabled: '@=parameter("auto_trial.end_date") ? true : false'
      $productsLimit: '%auto_trial.products_limit%'

