parameters:
  
services:
  gift_wrapping_handler:
    class: Heystack\GiftWrapping\GiftWrappingHandler
    arguments: [ @state, @event_dispatcher, @currency_service ]
    tags:
      - { name: ss_orm_backend.reference_data_provider }
      - { name: transaction.modifier }
      - { name: state.restore }

  gift_wrapping_subsriber:
    class: Heystack\GiftWrapping\Subscriber
    arguments: [ @event_dispatcher, @gift_wrapping_handler, @state ]
    tags:
      - { name: event_dispatcher.subscriber }
      
  gift_wrapping_transaction_schema:
    class: %yaml_data_object_schema.class%
    arguments: [ ecommerce-giftwrapping/config/storage/gift_wrapping_transaction.yml, @state_global ]
    tags:
      - { name: dataobject_generator.schema }
      
  gift_wrapping_schema:
    class: %yaml_data_object_schema.class%
    arguments: [ ecommerce-giftwrapping/config/storage/gift_wrapping.yml, @state_global ]
    tags:
      - { name: dataobject_generator.schema, reference: true }
      
parameters:
  
services:
  gift_wrapping_handler:
    class: Heystack\GiftWrapping\GiftWrappingHandler
    arguments: [ @state, @event_dispatcher, @currency_service ]
    tags:
      - { name: ss_orm_backend.reference_data_provider }
      - { name: transaction.modifier }
      - { name: state.restore }

  gift_wrapping_subsriber:
    class: Heystack\GiftWrapping\Subscriber
    arguments: [ @event_dispatcher, @gift_wrapping_handler, @state ]
    tags:
      - { name: event_dispatcher.subscriber }
      
  gift_wrapping_transaction_schema:
    class: %yaml_data_object_schema.class%
    arguments: [ ecommerce-giftwrapping/config/storage/gift_wrapping_transaction.yml ]
    tags:
      - { name: schema }
      - { name: autoinject, arguments: true }
      
  gift_wrapping_schema:
    class: %yaml_data_object_schema.class%
    arguments: [ ecommerce-giftwrapping/config/storage/gift_wrapping.yml ]
    tags:
      - { name: schema, reference: true }
      - { name: autoinject, arguments: true }
      
Migrate to be compatible with new haystack schema changes
Migrate to be compatible with new haystack schema changes
