You are here

tmgmt_smartling.services.yml in TMGMT Translator Smartling 8

File

tmgmt_smartling.services.yml
View source
  1. services:
  2. logger.channel.smartling:
  3. parent: logger.channel_base
  4. arguments: ['smartling']
  5. tmgmt_smartling.utils.context.job_url:
  6. class: Drupal\tmgmt_smartling\Context\TranslationJobToUrl
  7. arguments: ['@entity_type.manager']
  8. tmgmt_smartling.utils.context.current_user_auth:
  9. class: Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth
  10. arguments: ['@current_user']
  11. tmgmt_smartling.utils.context.user_auth:
  12. class: Drupal\tmgmt_smartling\Context\ContextUserAuth
  13. arguments: ['@current_user', '@entity.manager', '@module_handler', '@session_manager', '@session', '@logger.channel.smartling']
  14. tmgmt_smartling.utils.context.html_asset_inliner:
  15. class: Drupal\tmgmt_smartling\Context\HtmlAssetInliner
  16. arguments: []
  17. tmgmt_smartling.utils.context.uploader:
  18. class: Drupal\tmgmt_smartling\Context\ContextUploader
  19. arguments: ['@tmgmt_smartling.utils.context.job_url', '@tmgmt_smartling.utils.context.user_auth', '@tmgmt_smartling.utils.context.html_asset_inliner', '@logger.channel.smartling']
  20. tmgmt_smartling.subscriber.request_translation:
  21. class: \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber
  22. arguments: ['@queue', '@tmgmt_smartling.utils.context.job_url']
  23. tags:
  24. - { name: 'event_subscriber' }