commerce.services.yml 2.81 KB
Newer Older
1
services:
2 3
  commerce.configurable_field_manager:
    class: Drupal\commerce\ConfigurableFieldManager
4
    arguments: ['@entity_type.manager']
5

6 7 8 9
  commerce.credentials_check_flood:
    class: Drupal\commerce\CredentialsCheckFlood
    arguments: ['@flood', '@entity_type.manager', '@config.factory']

10 11
  commerce.current_country:
    class: Drupal\commerce\CurrentCountry
12 13 14 15 16 17 18 19 20 21 22 23 24
    arguments: ['@request_stack', '@commerce.chain_country_resolver']

  commerce.chain_country_resolver:
    class: Drupal\commerce\Resolver\ChainCountryResolver
    tags:
      - { name: service_collector, call: addResolver, tag: commerce.country_resolver }

  commerce.default_country_resolver:
    class: Drupal\commerce\Resolver\DefaultCountryResolver
    arguments: ['@config.factory']
    tags:
      - { name: commerce.country_resolver, priority: -100 }

25 26
  commerce.current_locale:
    class: Drupal\commerce\CurrentLocale
27 28 29 30 31 32 33 34 35
    arguments: ['@request_stack', '@commerce.chain_locale_resolver']

  commerce.chain_locale_resolver:
    class: Drupal\commerce\Resolver\ChainLocaleResolver
    tags:
      - { name: service_collector, call: addResolver, tag: commerce.locale_resolver }

  commerce.default_locale_resolver:
    class: Drupal\commerce\Resolver\DefaultLocaleResolver
36
    arguments: ['@language_manager', '@commerce.current_country']
37 38
    tags:
      - { name: commerce.locale_resolver, priority: -100 }
39 40 41 42 43

  commerce.availability_manager:
    class: Drupal\commerce\AvailabilityManager
    tags:
      - { name: service_collector, tag: commerce.availability_checker, call: addChecker }
44

mglaman's avatar
mglaman committed
45 46 47 48
  commerce.config_updater:
    class: Drupal\commerce\Config\ConfigUpdater
    arguments: ['@entity_type.manager', '@config.storage', '@config.factory']

49 50 51 52
  commerce.entity_uuid_mapper:
    class: Drupal\commerce\EntityUuidMapper
    arguments: ['@database', '@entity_type.manager']

53 54 55 56 57
  commerce.twig_extension:
    class: Drupal\commerce\TwigExtension\CommerceTwigExtension
    tags:
      - { name: twig.extension }

58
  cache_context.country:
59
    class: Drupal\commerce\Cache\Context\CountryCacheContext
60
    arguments: ['@commerce.current_country']
61 62
    tags:
      - { name: cache.context}
63

64 65
  plugin.manager.commerce_condition:
    class: Drupal\commerce\ConditionManager
66
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@entity_type.manager', '@event_dispatcher']
67

68 69 70
  plugin.manager.commerce_entity_trait:
    class: Drupal\commerce\EntityTraitManager
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@commerce.configurable_field_manager']
71 72 73 74

  plugin.manager.commerce_inline_form:
    class: Drupal\commerce\InlineFormManager
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
75 76 77

  commerce.mail_handler:
    class: Drupal\commerce\MailHandler
78
    arguments: ['@language.default', '@language_manager', '@plugin.manager.mail']