View source
- services:
- price.currency_repository:
- class: Drupal\price\Repository\CurrencyRepository
- arguments: ['@entity_type.manager']
-
- price.number_format_repository:
- class: Drupal\price\Repository\NumberFormatRepository
- arguments: ['@event_dispatcher']
-
- price.currency_formatter:
- class: Drupal\price\CurrencyFormatter
- arguments: ['@price.number_format_repository', '@price.currency_repository', '@price.current_locale']
-
- price.number_formatter:
- class: Drupal\price\NumberFormatter
- arguments: ['@price.number_format_repository', '@price.current_locale']
-
- price.currency_importer:
- class: Drupal\price\CurrencyImporter
- arguments: ['@entity_type.manager', '@language_manager']
-
- price.number_formatter_factory:
- class: Drupal\price\NumberFormatterFactory
- arguments: ['@price.currency_formatter']
- deprecated: The "%service_id%" service is deprecated. You should use the 'price.currency_formatter' service instead. See http://drupal.org/node/the-change-notice-nid
-
- price.twig_extension:
- class: Drupal\price\TwigExtension\PriceTwigExtension
- tags:
- - { name: twig.extension }
-
- price.rounder:
- class: Drupal\price\Rounder
- arguments: ['@entity_type.manager']
-
-
- price.current_country:
- class: Drupal\price\CurrentCountry
- arguments: ['@request_stack', '@price.chain_country_resolver']
-
- price.chain_country_resolver:
- class: Drupal\price\Resolver\ChainCountryResolver
- tags:
- - { name: service_collector, call: addResolver, tag: price.country_resolver }
-
- price.default_country_resolver:
- class: Drupal\price\Resolver\DefaultCountryResolver
- arguments: ['@config.factory']
- tags:
- - { name: price.country_resolver, priority: -100 }
-
- cache_context.price_country:
- class: Drupal\price\Cache\Context\CountryCacheContext
- arguments: ['@price.current_country']
- tags:
- - { name: cache.context}
-
-
- price.current_locale:
- class: Drupal\price\CurrentLocale
- arguments: ['@request_stack', '@price.chain_locale_resolver']
-
- price.chain_locale_resolver:
- class: Drupal\price\Resolver\ChainLocaleResolver
- tags:
- - { name: service_collector, call: addResolver, tag: price.locale_resolver }
-
- price.default_locale_resolver:
- class: Drupal\price\Resolver\DefaultLocaleResolver
- arguments: ['@language_manager', '@price.current_country']
- tags:
- - { name: price.locale_resolver, priority: -100 }