#
# Module services
#
# Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
# See https://www.x-cart.com/license-agreement.html for license details.
dto_generator:
  entities:
    api:
      XCart\API\Entity\Storefront\Product\Detailed:
        fields:
          upc:
            type: string
            nullable: true
          mnf:
            type: string
            nullable: true

    logic:
      XCart\Logic\Entity\Storefront\Product:
        fields:
          upc:
            type: string
            nullable: true
          mnf:
            type: string
            nullable: true

services:
  _defaults:
    autowire: true
    autoconfigure: true
  XC\SystemFields\Core\EventListener\DatabaseSchemaEventListener:
    - name: doctrine.event_listener
      event: loadClassMetadata
      method: loadClassMetadata

  XC\SystemFields\Transformer\XLite\Model\Product\Logic\Entity\Storefront\ProductDecorator:
    decorates: XCart\Transformer\XLite\Model\Product\Logic\Entity\Storefront\Product
