You are here

commerce_tax.services.yml in Commerce Core 8.2

modules/tax/commerce_tax.services.yml

File

modules/tax/commerce_tax.services.yml
View source
  1. services:
  2. plugin.manager.commerce_tax_number_type:
  3. class: Drupal\commerce_tax\TaxNumberTypeManager
  4. parent: default_plugin_manager
  5. plugin.manager.commerce_tax_type:
  6. class: Drupal\commerce_tax\TaxTypeManager
  7. parent: default_plugin_manager
  8. commerce_tax.store_tax:
  9. class: Drupal\commerce_tax\StoreTax
  10. arguments: ['@entity_type.manager', '@commerce_tax.chain_tax_rate_resolver']
  11. commerce_tax.chain_tax_rate_resolver:
  12. class: Drupal\commerce_tax\Resolver\ChainTaxRateResolver
  13. tags:
  14. - { name: service_collector, call: addResolver, tag: commerce_tax.tax_rate_resolver }
  15. commerce_tax.default_tax_rate_resolver:
  16. class: Drupal\commerce_tax\Resolver\DefaultTaxRateResolver
  17. tags:
  18. - { name: commerce_tax.tax_rate_resolver, priority: -100 }
  19. commerce_tax.tax_order_processor:
  20. class: Drupal\commerce_tax\TaxOrderProcessor
  21. arguments: ['@entity_type.manager', '@commerce_price.rounder', '@commerce_tax.store_tax']
  22. tags:
  23. - { name: commerce_order.order_processor, priority: 50, adjustment_type: tax }