#
# 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:
    formats:
      news: domain/goalnews
services:
  _defaults:
    autowire: true

  XC\News\EntityCallback\ProductCallback:
    tags:
      - {name: doctrine.orm.entity_listener, event: prePersist, entity: XC\News\Model\NewsMessage}
      - {name: doctrine.orm.entity_listener, event: preUpdate, entity: XC\News\Model\NewsMessage}
