You are here

tmgmt_smartling.services.yml in TMGMT Translator Smartling 8.3

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. calls:
  9. - [setConfigManager, ['@tmgmt_smartling.smartling_config_manager']]
  10. tags:
  11. - { name: logger }
  12. tmgmt_smartling.utils.context.job_url:
  13. class: Drupal\tmgmt_smartling\Context\TranslationJobToUrl
  14. arguments: ['@entity_type.manager']
  15. tmgmt_smartling.utils.context.current_user_auth:
  16. class: Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth
  17. arguments: ['@current_user']
  18. tmgmt_smartling.utils.context.user_auth:
  19. class: Drupal\tmgmt_smartling\Context\ContextUserAuth
  20. arguments: ['@current_user', '@entity.manager', '@module_handler', '@session_manager', '@session', '@logger.channel.smartling']
  21. tmgmt_smartling.utils.context.html_asset_inliner:
  22. class: Drupal\tmgmt_smartling\Context\HtmlAssetInliner
  23. arguments: []
  24. tmgmt_smartling.utils.context.uploader:
  25. class: Drupal\tmgmt_smartling\Context\ContextUploader
  26. arguments: ['@tmgmt_smartling.smartling_api_wrapper', '@tmgmt_smartling.utils.context.job_url', '@tmgmt_smartling.utils.context.user_auth', '@tmgmt_smartling.utils.context.html_asset_inliner', '@logger.channel.smartling']
  27. tmgmt_smartling.subscriber.request_translation:
  28. class: \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber
  29. arguments: ['@queue', '@tmgmt_smartling.utils.context.job_url']
  30. tags:
  31. - { name: 'event_subscriber' }
  32. tmgmt_smartling.subscriber.request:
  33. class: \Drupal\tmgmt_smartling\EventSubscriber\RequestSubscriber
  34. arguments: ['@queue', '@current_user']
  35. tags:
  36. - { name: 'event_subscriber' }
  37. tmgmt_smartling.event_subscriber.config:
  38. class: \Drupal\tmgmt_smartling\EventSubscriber\ConfigEventsSubscriber
  39. arguments: ['@cache_tags.invalidator']
  40. tags:
  41. - { name: 'event_subscriber' }
  42. tmgmt_smartling.smartling_api_factory:
  43. class: \Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory
  44. tmgmt_smartling.smartling_api_wrapper:
  45. class: \Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper
  46. arguments: ['@tmgmt_smartling.smartling_api_factory', '@logger.channel.smartling']
  47. tmgmt_smartling.bucket_job_manager:
  48. class: \Drupal\tmgmt_smartling\Smartling\BucketJobManager
  49. arguments: ['@logger.channel.smartling', '@tmgmt_smartling.smartling_api_wrapper', '@tmgmt_smartling.smartling_config_manager', '@module_handler', '@tmgmt_extension_suit.utils.queue_unique_item', '@config.factory']
  50. tmgmt_smartling.smartling_config_manager:
  51. class: \Drupal\tmgmt_smartling\Smartling\ConfigManager\SmartlingConfigManager
  52. arguments: ['@config.factory']
  53. tmgmt_smartling.firebase_config_manager:
  54. class: \Drupal\tmgmt_smartling\Smartling\ConfigManager\FirebaseConfigManager
  55. calls:
  56. - [setSmartlingApiWrapper, ['@tmgmt_smartling.smartling_api_wrapper']]
  57. - [setDefaultCache, ['@cache.default']]
  58. arguments: ['@config.factory']
  59. tmgmt_smartling.translation_progress_calculator:
  60. class: \Drupal\tmgmt_smartling\Smartling\TranslationProgressCalculator
  61. arguments: ['@logger.channel.smartling']