You are here

lingotek.services.yml in Lingotek Translation 8

File

lingotek.services.yml
View source
  1. services:
  2. lingotek:
  3. class: Drupal\lingotek\Lingotek
  4. arguments: ['@lingotek.api', '@lingotek.language_locale_mapper', '@config.factory']
  5. lingotek.http_client:
  6. class: Drupal\lingotek\Remote\LingotekHttp
  7. arguments: ['@http_client', '@config.factory']
  8. lingotek.api:
  9. class: Drupal\lingotek\Remote\LingotekApi
  10. arguments: ['@lingotek.http_client', '@logger.channel.lingotek']
  11. lingotek.language_locale_mapper:
  12. class: Drupal\lingotek\LanguageLocaleMapper
  13. arguments: ['@entity.query']
  14. lingotek.language_form:
  15. class: Drupal\lingotek\Form\LingotekLanguageForm
  16. arguments: ['@lingotek', '@lingotek.language_locale_mapper']
  17. lingotek.configuration:
  18. class: Drupal\lingotek\LingotekConfigurationService
  19. lingotek.content_translation:
  20. class: Drupal\lingotek\LingotekContentTranslationService
  21. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration', '@lingotek.config_translation', '@entity.manager', '@language_manager']
  22. lingotek.config_translation:
  23. class: Drupal\lingotek\LingotekConfigTranslationService
  24. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration', '@entity.manager', '@language_manager', '@plugin.manager.config_translation.mapper']
  25. lingotek.profile_usage:
  26. class: Drupal\lingotek\LingotekProfileUsage
  27. arguments: ['@lingotek.configuration', '@entity.query', '@plugin.manager.config_translation.mapper']
  28. lingotek.content_translation_subscriber:
  29. class: Drupal\lingotek\Routing\LingotekRouteSubscriber
  30. arguments: ['@entity.manager']
  31. tags:
  32. - { name: event_subscriber }
  33. logger.channel.lingotek:
  34. parent: logger.channel_base
  35. arguments: ['lingotek']
  36. lingotek.config_subscriber:
  37. class: Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber
  38. arguments: ['@lingotek.config_translation', '@plugin.manager.config_translation.mapper']
  39. tags:
  40. - { name: event_subscriber }