commerce_avatax.services.yml in Drupal Commerce Connector for AvaTax 8
File
commerce_avatax.services.yml
View source
- services:
- cache.commerce_avatax_memory:
- class: Drupal\Core\Cache\MemoryCache\MemoryCache
- public: false
-
- cache.commerce_avatax:
- class: Drupal\Core\Cache\BackendChain
- calls:
- - [appendBackend, ['@cache.commerce_avatax_memory']]
- - [appendBackend, ['@cache.default']]
- tags: [{ name: cache.bin }]
-
- commerce_avatax.avatax_lib:
- class: Drupal\commerce_avatax\AvataxLib
- arguments: ['@plugin.manager.commerce_adjustment_type', '@commerce_avatax.chain_tax_code_resolver', '@commerce_avatax.client_factory', '@config.factory', '@event_dispatcher', '@logger.channel.commerce_avatax', '@module_handler', '@cache.commerce_avatax']
-
- commerce_avatax.client_factory:
- class: Drupal\commerce_avatax\ClientFactory
- arguments: ['@http_client_factory', '@extension.list.module']
-
- commerce_avatax.chain_tax_code_resolver:
- class: Drupal\commerce_avatax\Resolver\ChainTaxCodeResolver
- tags:
- - { name: service_collector, call: addResolver, tag: commerce_avatax.tax_code_resolver }
- commerce_avatax.product_variation_tax_code_resolver:
- class: Drupal\commerce_avatax\Resolver\ProductVariationTaxCodeResolver
- tags:
- - { name: commerce_avatax.tax_code_resolver, priority: 100 }
-
- commerce_avatax.order_subscriber:
- class: Drupal\commerce_avatax\EventSubscriber\OrderSubscriber
- arguments: ['@commerce_avatax.avatax_lib', '@config.factory']
- tags:
- - { name: event_subscriber }
-
- commerce_avatax.customer_profile_alter:
- class: Drupal\commerce_avatax\CustomerProfileAlter
- arguments: ['@config.factory', '@commerce_avatax.avatax_lib', '@csrf_token', '@datetime.time']
-
- logger.channel.commerce_avatax:
- class: Drupal\Core\Logger\LoggerChannel
- factory: logger.factory:get
- arguments: ['commerce_avatax']