commerce_amws-8.x-1.x-dev/modules/shipping/commerce_amws_shipping.services.yml

modules/shipping/commerce_amws_shipping.services.yml
services:
  # Entity Sync.
  ## Client factories - declared in service provider.
  ## Runners.
  commerce_amws_shipping.entity_sync_runner.feed_post_order_fulfillment_data:
    class: Drupal\commerce_amws_shipping\EntitySync\FeedPostOrderFulfillmentDataRunner
    arguments:
      - '@entity_type.manager'
      - '@entity_sync.export.entity_manager'
      - '@logger.channel.commerce_amws_shipping'

  ## Event subscribers.
  commerce_amws_shipping.order_shipment:
    class: Drupal\commerce_amws_shipping\EventSubscriber\OrderShipment
    arguments:
      - '@commerce_amws_shipping.shipment_service'
    tags:
      - { name: event_subscriber }

  commerce_amws_shipping.export.shipment_queue_validate:
    class: Drupal\commerce_amws_shipping\EventSubscriber\ShipmentQueueExportValidate
    tags:
      - { name: event_subscriber }

  commerce_amws_shipping.export.shipment_local_entity_mapping:
    class: Drupal\commerce_amws_shipping\EventSubscriber\ShipmentExportLocalEntityMapping
    tags:
      - { name: event_subscriber }

  commerce_amws_shipping.export.shipment_local_entity_terminate:
    class: Drupal\commerce_amws_shipping\EventSubscriber\ShipmentExportLocalEntityTerminate
    arguments:
      - '@entity_type.manager'
    tags:
      - { name: event_subscriber }

  # Logger channel.
  logger.channel.commerce_amws_shipping:
    parent: logger.channel_base
    arguments: ['commerce_amws_shipping']

  # Feed type requester.
  # @I Declare feed type requesters only if the Feed submodule is installed
  #    type     : task
  #    priority : low
  #    labels   : feed, service
  commerce_amws_shipping.feed_type_requester:
    class: 'Drupal\commerce_amws_shipping\Feed\FeedTypeRequester'
    tags:
      - { name: 'commerce_amws_feed.feed_type_requester' }

  # Hooks and update methods.
  ## Implemented as services for OOP.
  commerce_amws_shipping.hook.entity_field:
    class: Drupal\commerce_amws_shipping\Hook\EntityField
    arguments:
      - '@module_handler'
      - '@entity.definition_update_manager'
      - '@string_translation'

  # Other services.
  commerce_amws_shipping.shipment_service:
    class: Drupal\commerce_amws_shipping\ShipmentService
    arguments:
      - '@entity_type.manager'
      - '@commerce_amws_order.helper_service'
      - '@config.factory'
      - '@logger.channel.commerce_amws_shipping'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc