forked from drupalcommerce/commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commerce.services.yml
70 lines (56 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
commerce.configurable_field_manager:
class: Drupal\commerce\ConfigurableFieldManager
arguments: ['@entity_type.manager']
commerce.credentials_check_flood:
class: Drupal\commerce\CredentialsCheckFlood
arguments: ['@flood', '@entity_type.manager', '@config.factory']
commerce.current_country:
class: Drupal\commerce\CurrentCountry
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.current_locale:
class: Drupal\commerce\CurrentLocale
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.current_country']
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']
commerce.entity_uuid_mapper:
class: Drupal\commerce\EntityUuidMapper
arguments: ['@database', '@entity_type.manager']
commerce.twig_extension:
class: Drupal\commerce\TwigExtension\CommerceTwigExtension
tags:
- { name: twig.extension }
cache_context.country:
class: Drupal\commerce\Cache\Context\CountryCacheContext
arguments: ['@commerce.current_country']
tags:
- { name: cache.context}
plugin.manager.commerce_condition:
class: Drupal\commerce\ConditionManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@entity_type.manager', '@event_dispatcher']
plugin.manager.commerce_entity_trait:
class: Drupal\commerce\EntityTraitManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@commerce.configurable_field_manager']