You are here

commerce_promotion.services.yml in Commerce Core 8.2

modules/promotion/commerce_promotion.services.yml

File

modules/promotion/commerce_promotion.services.yml
View source
  1. services:
  2. plugin.manager.commerce_promotion_offer:
  3. class: Drupal\commerce_promotion\PromotionOfferManager
  4. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@entity_type.manager']
  5. commerce_promotion.promotion_order_processor:
  6. class: Drupal\commerce_promotion\PromotionOrderProcessor
  7. arguments: ['@entity_type.manager', '@language_manager']
  8. tags:
  9. - { name: commerce_order.order_preprocessor, priority: 100}
  10. - { name: commerce_order.order_processor, priority: 100, adjustment_type: promotion }
  11. commerce_promotion.usage:
  12. class: Drupal\commerce_promotion\PromotionUsage
  13. arguments: ['@database']
  14. tags:
  15. - { name: backend_overridable }
  16. commerce_promotion.filter_conditions_subscriber:
  17. class: Drupal\commerce_promotion\EventSubscriber\FilterConditionsEventSubscriber
  18. tags:
  19. - { name: event_subscriber }
  20. commerce_promotion.order_subscriber:
  21. class: Drupal\commerce_promotion\EventSubscriber\OrderEventSubscriber
  22. arguments: ['@entity_type.manager', '@commerce_promotion.usage']
  23. tags:
  24. - { name: event_subscriber }
  25. commerce_promotion.coupon_code_generator:
  26. class: Drupal\commerce_promotion\CouponCodeGenerator
  27. arguments: ['@database']
  28. commerce_promotion.route_subscriber:
  29. class: Drupal\commerce_promotion\EventSubscriber\RouteSubscriber
  30. tags:
  31. - { name: event_subscriber }