language.services.yml 1.11 KB
Newer Older
1
services:
2 3
  plugin.manager.language_negotiation_method:
    class: Drupal\language\LanguageNegotiationMethodManager
4
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
5 6
  language_negotiator:
    class: Drupal\language\LanguageNegotiator
7
    arguments: ['@language_manager', '@plugin.manager.language_negotiation_method', '@config.factory', '@settings', '@request_stack']
8 9
    calls:
      - [initLanguageManager]
10 11
  language.config_subscriber:
    class: Drupal\language\EventSubscriber\ConfigSubscriber
12
    arguments: ['@language_manager', '@language.default', '@config.factory', '@language_negotiator']
13 14
    tags:
      - { name: event_subscriber }
15 16
  language.config_factory_override:
    class: Drupal\language\Config\LanguageConfigFactoryOverride
17
    arguments: ['@config.storage', '@event_dispatcher', '@config.typed', '@language.default']
18 19
    tags:
      - { name: config.factory.override, priority: -254 }
20
      - { name: event_subscriber }
21 22 23 24 25
  language_converter:
    class: Drupal\language\LanguageConverter
    arguments: ['@language_manager']
    tags:
      - { name: paramconverter }
26
    lazy: true