forked from drupalcommerce/commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commerce.services.yml
57 lines (46 loc) · 2.06 KB
/
commerce.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
commerce.bundle_plugin_installer:
class: Drupal\commerce\BundlePluginInstaller
arguments: ['@entity_type.manager', '@entity_bundle.listener', '@field_storage_definition.listener', '@field_definition.listener']
commerce.credentials_check_flood:
class: Drupal\commerce\CredentialsCheckFlood
arguments: ['@flood', '@entity_type.manager', '@config.factory']
commerce.plugin_form_factory:
class: Drupal\commerce\PluginForm\PluginFormFactory
arguments: ['@class_resolver']
commerce.country_context:
class: Drupal\commerce\CountryContext
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 }
commerce.locale_context:
class: Drupal\commerce\LocaleContext
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
arguments: ['@language_manager', '@commerce.country_context']
tags:
- { name: commerce.locale_resolver, priority: -100 }
commerce.availability_manager:
class: Drupal\commerce\AvailabilityManager
tags:
- { name: service_collector, tag: commerce.availability_checker, call: addChecker }
commerce.config_updater:
class: Drupal\commerce\Config\ConfigUpdater
arguments: ['@entity_type.manager', '@config.storage', '@config.factory']
cache_context.country:
class: Drupal\commerce\Cache\Context\CountryCacheContext
arguments: ['@commerce.country_context']
tags:
- { name: cache.context}