You are here

commerce_order.services.yml in Commerce Core 8.2

modules/order/commerce_order.services.yml

File

modules/order/commerce_order.services.yml
View source
  1. services:
  2. access_check.address_book:
  3. class: Drupal\commerce_order\Access\AddressBookAccessCheck
  4. arguments: ['@commerce_order.address_book']
  5. tags:
  6. - { name: access_check, applies_to: _address_book_access }
  7. plugin.manager.commerce_adjustment_type:
  8. class: Drupal\commerce_order\AdjustmentTypeManager
  9. arguments: ['@module_handler', '@cache.discovery']
  10. commerce_order.availability_manager:
  11. class: Drupal\commerce_order\AvailabilityManager
  12. tags:
  13. - { name: service_collector, tag: commerce.availability_checker, call: addLegacyChecker }
  14. - { name: service_collector, tag: commerce_order.availability_checker, call: addChecker }
  15. commerce_order.chain_order_type_resolver:
  16. class: Drupal\commerce_order\Resolver\ChainOrderTypeResolver
  17. tags:
  18. - { name: service_collector, call: addResolver, tag: commerce_order.order_type_resolver }
  19. commerce_order.default_order_type_resolver:
  20. class: Drupal\commerce_order\Resolver\DefaultOrderTypeResolver
  21. arguments: ['@entity_type.manager']
  22. tags:
  23. - { name: commerce_order.order_type_resolver, priority: -100 }
  24. commerce_order.adjustment_transformer:
  25. class: Drupal\commerce_order\AdjustmentTransformer
  26. arguments: ['@plugin.manager.commerce_adjustment_type', '@commerce_price.rounder']
  27. commerce_order.address_book:
  28. class: Drupal\commerce_order\AddressBook
  29. arguments: ['@entity_type.bundle.info', '@entity_type.manager']
  30. commerce_order.order_assignment:
  31. class: Drupal\commerce_order\OrderAssignment
  32. arguments: ['@entity_type.manager', '@event_dispatcher']
  33. commerce_order.order_refresh:
  34. class: Drupal\commerce_order\OrderRefresh
  35. arguments: ['@entity_type.manager', '@commerce_price.chain_price_resolver', '@current_user', '@datetime.time']
  36. tags:
  37. - { name: service_collector, call: addPreprocessor, tag: commerce_order.order_preprocessor }
  38. - { name: service_collector, call: addProcessor, tag: commerce_order.order_processor }
  39. commerce_order.availability_order_processor:
  40. class: Drupal\commerce_order\AvailabilityOrderProcessor
  41. arguments: ['@commerce_order.availability_manager', '@entity_type.manager']
  42. tags:
  43. - { name: commerce_order.order_processor, priority: 100 }
  44. commerce_order.address_book_subscriber:
  45. class: Drupal\commerce_order\EventSubscriber\AddressBookSubscriber
  46. arguments: ['@commerce_order.address_book']
  47. tags:
  48. - { name: event_subscriber }
  49. commerce_order.profile_label_subscriber:
  50. class: Drupal\commerce_order\EventSubscriber\ProfileLabelSubscriber
  51. arguments: ['@entity_type.manager']
  52. tags:
  53. - { name: event_subscriber }
  54. commerce_order.timestamp_event_subscriber:
  55. class: Drupal\commerce_order\EventSubscriber\TimestampEventSubscriber
  56. arguments: ['@datetime.time']
  57. tags:
  58. - { name: event_subscriber }
  59. commerce_order.order_number_subscriber:
  60. class: Drupal\commerce_order\EventSubscriber\OrderNumberSubscriber
  61. arguments: ['@entity_type.manager']
  62. tags:
  63. - { name: event_subscriber }
  64. commerce_order.order_receipt_subscriber:
  65. class: Drupal\commerce_order\EventSubscriber\OrderReceiptSubscriber
  66. arguments: ['@entity_type.manager', '@commerce_order.order_receipt_mail']
  67. tags:
  68. - { name: 'event_subscriber' }
  69. commerce_order.order_receipt_mail:
  70. class: Drupal\commerce_order\Mail\OrderReceiptMail
  71. arguments: ['@entity_type.manager', '@commerce.mail_handler', '@commerce_order.order_total_summary']
  72. commerce_order.order_total_summary:
  73. class: Drupal\commerce_order\OrderTotalSummary
  74. arguments: ['@commerce_order.adjustment_transformer']
  75. commerce_order.order_store_resolver:
  76. class: Drupal\commerce_order\Resolver\OrderStoreResolver
  77. arguments: ['@current_route_match']
  78. tags:
  79. - { name: commerce_store.store_resolver, priority: 100 }
  80. commerce_order.price_splitter:
  81. class: Drupal\commerce_order\PriceSplitter
  82. arguments: ['@entity_type.manager', '@commerce_price.rounder']
  83. commerce_order.price_calculator:
  84. class: Drupal\commerce_order\PriceCalculator
  85. arguments: ['@commerce_order.adjustment_transformer', '@commerce_order.chain_order_type_resolver', '@commerce_price.chain_price_resolver', '@entity_type.manager', '@request_stack']

Services

Namesort descending Description
access_check.address_book Drupal\commerce_order\Access\AddressBookAccessCheck
commerce_order.address_book Drupal\commerce_order\AddressBook
commerce_order.address_book_subscriber Drupal\commerce_order\EventSubscriber\AddressBookSubscriber
commerce_order.adjustment_transformer Drupal\commerce_order\AdjustmentTransformer
commerce_order.availability_manager Drupal\commerce_order\AvailabilityManager
commerce_order.availability_order_processor Drupal\commerce_order\AvailabilityOrderProcessor
commerce_order.chain_order_type_resolver Drupal\commerce_order\Resolver\ChainOrderTypeResolver
commerce_order.default_order_type_resolver Drupal\commerce_order\Resolver\DefaultOrderTypeResolver
commerce_order.order_assignment Drupal\commerce_order\OrderAssignment
commerce_order.order_number_subscriber Drupal\commerce_order\EventSubscriber\OrderNumberSubscriber
commerce_order.order_receipt_mail Drupal\commerce_order\Mail\OrderReceiptMail
commerce_order.order_receipt_subscriber Drupal\commerce_order\EventSubscriber\OrderReceiptSubscriber
commerce_order.order_refresh Drupal\commerce_order\OrderRefresh
commerce_order.order_store_resolver Drupal\commerce_order\Resolver\OrderStoreResolver
commerce_order.order_total_summary Drupal\commerce_order\OrderTotalSummary
commerce_order.price_calculator Drupal\commerce_order\PriceCalculator
commerce_order.price_splitter Drupal\commerce_order\PriceSplitter
commerce_order.profile_label_subscriber Drupal\commerce_order\EventSubscriber\ProfileLabelSubscriber
commerce_order.timestamp_event_subscriber Drupal\commerce_order\EventSubscriber\TimestampEventSubscriber
plugin.manager.commerce_adjustment_type Drupal\commerce_order\AdjustmentTypeManager