You are here

tmgmt_smartling.services.yml in TMGMT Translator Smartling 8.2

File

tmgmt_smartling.services.yml
View source
  1. services:
  2. logger.channel.smartling:
  3. parent: logger.channel_base
  4. arguments: ['tmgmt_smartling']
  5. logger.smartling:
  6. class: Drupal\tmgmt_smartling\Logger\BufferLogger
  7. arguments: ['@http_client', '@logger.log_message_parser', '@config.factory', '@request_stack']
  8. tags:
  9. - { name: logger }
  10. tmgmt_smartling.utils.context.job_url:
  11. class: Drupal\tmgmt_smartling\Context\TranslationJobToUrl
  12. arguments: ['@entity_type.manager']
  13. tmgmt_smartling.utils.context.current_user_auth:
  14. class: Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth
  15. arguments: ['@current_user']
  16. tmgmt_smartling.utils.context.user_auth:
  17. class: Drupal\tmgmt_smartling\Context\ContextUserAuth
  18. arguments: ['@current_user', '@entity.manager', '@module_handler', '@session_manager', '@session', '@logger.channel.smartling']
  19. tmgmt_smartling.utils.context.html_asset_inliner:
  20. class: Drupal\tmgmt_smartling\Context\HtmlAssetInliner
  21. arguments: []
  22. tmgmt_smartling.utils.context.uploader:
  23. class: Drupal\tmgmt_smartling\Context\ContextUploader
  24. arguments: ['@tmgmt_smartling.utils.context.job_url', '@tmgmt_smartling.utils.context.user_auth', '@tmgmt_smartling.utils.context.html_asset_inliner', '@logger.channel.smartling']
  25. tmgmt_smartling.subscriber.request_translation:
  26. class: \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber
  27. arguments: ['@queue', '@tmgmt_smartling.utils.context.job_url']
  28. tags:
  29. - { name: 'event_subscriber' }
  30. tmgmt_smartling.subscriber.request:
  31. class: \Drupal\tmgmt_smartling\EventSubscriber\RequestSubscriber
  32. arguments: ['@queue', '@current_user']
  33. tags:
  34. - { name: 'event_subscriber' }
  35. tmgmt_smartling.smartling_api_factory:
  36. class: \Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory