You are here

commerce.services.yml in Commerce Core 8.2

File

commerce.services.yml
View source
  1. services:
  2. commerce.configurable_field_manager:
  3. class: Drupal\commerce\ConfigurableFieldManager
  4. arguments: ['@entity_type.manager']
  5. commerce.credentials_check_flood:
  6. class: Drupal\commerce\CredentialsCheckFlood
  7. arguments: ['@flood', '@entity_type.manager', '@config.factory']
  8. commerce.current_country:
  9. class: Drupal\commerce\CurrentCountry
  10. arguments: ['@request_stack', '@commerce.chain_country_resolver']
  11. commerce.chain_country_resolver:
  12. class: Drupal\commerce\Resolver\ChainCountryResolver
  13. tags:
  14. - { name: service_collector, call: addResolver, tag: commerce.country_resolver }
  15. commerce.default_country_resolver:
  16. class: Drupal\commerce\Resolver\DefaultCountryResolver
  17. arguments: ['@config.factory']
  18. tags:
  19. - { name: commerce.country_resolver, priority: -100 }
  20. commerce.current_locale:
  21. class: Drupal\commerce\CurrentLocale
  22. arguments: ['@request_stack', '@commerce.chain_locale_resolver']
  23. commerce.chain_locale_resolver:
  24. class: Drupal\commerce\Resolver\ChainLocaleResolver
  25. tags:
  26. - { name: service_collector, call: addResolver, tag: commerce.locale_resolver }
  27. commerce.default_locale_resolver:
  28. class: Drupal\commerce\Resolver\DefaultLocaleResolver
  29. arguments: ['@language_manager', '@commerce.current_country']
  30. tags:
  31. - { name: commerce.locale_resolver, priority: -100 }
  32. commerce.availability_manager:
  33. class: Drupal\commerce\AvailabilityManager
  34. tags:
  35. - { name: service_collector, tag: commerce.availability_checker, call: addChecker }
  36. commerce.config_updater:
  37. class: Drupal\commerce\Config\ConfigUpdater
  38. arguments: ['@entity_type.manager', '@config.storage', '@config.factory']
  39. commerce.entity_uuid_mapper:
  40. class: Drupal\commerce\EntityUuidMapper
  41. arguments: ['@database', '@entity_type.manager']
  42. commerce.twig_extension:
  43. class: Drupal\commerce\TwigExtension\CommerceTwigExtension
  44. tags:
  45. - { name: twig.extension }
  46. cache_context.country:
  47. class: Drupal\commerce\Cache\Context\CountryCacheContext
  48. arguments: ['@commerce.current_country']
  49. tags:
  50. - { name: cache.context}
  51. plugin.manager.commerce_condition:
  52. class: Drupal\commerce\ConditionManager
  53. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@entity_type.manager', '@event_dispatcher']
  54. plugin.manager.commerce_entity_trait:
  55. class: Drupal\commerce\EntityTraitManager
  56. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@commerce.configurable_field_manager']
  57. plugin.manager.commerce_inline_form:
  58. class: Drupal\commerce\InlineFormManager
  59. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  60. commerce.mail_handler:
  61. class: Drupal\commerce\MailHandler
  62. arguments: ['@language.default', '@language_manager', '@plugin.manager.mail', '@event_dispatcher']
  63. commerce.purchasable_entity_type_repository:
  64. class: Drupal\commerce\PurchasableEntityTypeRepository
  65. arguments: ['@entity_type.manager']
  66. commerce.response_subscriber:
  67. class: Drupal\commerce\EventSubscriber\ResponseSubscriber
  68. tags:
  69. - { name: event_subscriber }