You are here

commerce_invoice.services.yml in Commerce Invoice 8.2

File

commerce_invoice.services.yml
View source
  1. services:
  2. access_check.invoice_order:
  3. class: Drupal\commerce_invoice\Access\InvoiceOrderAccessCheck
  4. arguments: ['@entity_type.manager']
  5. tags:
  6. - { name: access_check, applies_to: _invoice_order_access }
  7. commerce_invoice.entity_print_subscriber:
  8. class: Drupal\commerce_invoice\EventSubscriber\EntityPrintSubscriber
  9. tags:
  10. - { name: event_subscriber }
  11. commerce_invoice.invoice_generator:
  12. class: Drupal\commerce_invoice\InvoiceGenerator
  13. arguments: ['@database', '@entity_type.manager', '@language_manager', '@module_handler']
  14. commerce_invoice.invoice_subscriber:
  15. class: Drupal\commerce_invoice\EventSubscriber\InvoiceSubscriber
  16. tags:
  17. - { name: event_subscriber }
  18. commerce_invoice.invoice_total_summary:
  19. class: Drupal\commerce_invoice\InvoiceTotalSummary
  20. arguments: ['@commerce_order.adjustment_transformer']
  21. commerce_invoice.order_paid_subscriber:
  22. class: Drupal\commerce_invoice\EventSubscriber\OrderPaidSubscriber
  23. arguments: ['@entity_type.manager']
  24. tags:
  25. - { name: event_subscriber }
  26. commerce_invoice.order_placed_subscriber:
  27. class: Drupal\commerce_invoice\EventSubscriber\OrderPlacedSubscriber
  28. arguments: ['@commerce_invoice.invoice_generator']
  29. tags:
  30. - { name: event_subscriber }
  31. commerce_invoice.print_builder:
  32. class: Drupal\commerce_invoice\InvoicePrintBuilder
  33. arguments: ['@config.factory', '@entity_type.manager', '@entity_print.print_builder', '@entity_print.filename_generator', '@event_dispatcher', '@current_user']
  34. commerce_invoice.route_subscriber:
  35. class: Drupal\commerce_invoice\EventSubscriber\RouteSubscriber
  36. tags:
  37. - { name: event_subscriber }
  38. commerce_invoice.invoice_file_manager:
  39. class: Drupal\commerce_invoice\InvoiceFileManager
  40. arguments: ['@entity_type.manager', '@plugin.manager.entity_print.print_engine', '@commerce_invoice.print_builder']
  41. commerce_invoice.invoice_confirmation_subscriber:
  42. class: Drupal\commerce_invoice\EventSubscriber\InvoiceConfirmationSubscriber
  43. arguments: ['@entity_type.manager', '@commerce_invoice.invoice_confirmation_mail']
  44. tags:
  45. - { name: event_subscriber }
  46. - { name: needs_destruction }
  47. commerce_invoice.invoice_confirmation_mail:
  48. class: Drupal\commerce_invoice\Mail\InvoiceConfirmationMail
  49. arguments: ['@entity_type.manager', '@commerce.mail_handler', '@commerce_invoice.invoice_total_summary', '@commerce_invoice.invoice_file_manager']
  50. commerce_invoice.breadcrumb:
  51. class: Drupal\commerce_invoice\InvoiceBreadcrumbBuilder
  52. arguments: ['@router.request_context', '@access_manager', '@router', '@path_processor_manager', '@config.factory', '@title_resolver', '@current_user', '@path.current', '@path.matcher']
  53. tags:
  54. - { name: breadcrumb_builder, priority: 100 }