#
# 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

  QSL\LoyaltyProgram\Core\EventListener:
    tags:
      - {name: kernel.event_listener, event: xcart.service.view-list.collect-mutation, method: onCollectViewListMutations}

  QSL\LoyaltyProgram\API\Endpoint\Order\Transformer\RewardHistoryEvent\OutputTransformerInterface: '@QSL\LoyaltyProgram\API\Endpoint\Order\Transformer\RewardHistoryEvent\OutputTransformer'
  QSL\LoyaltyProgram\API\Endpoint\Order\Transformer\RewardHistoryEvent\OutputTransformer: ~

  QSL\LoyaltyProgram\EntityCallback\RewardHistoryEventsCallback:
    tags:
      - {name: doctrine.orm.entity_listener, event: prePersist, entity: QSL\LoyaltyProgram\Model\RewardHistoryEvent}
      - {name: doctrine.orm.entity_listener, event: preUpdate, entity: QSL\LoyaltyProgram\Model\RewardHistoryEvent}
