View source
- services:
- logger.channel.smartling:
- parent: logger.channel_base
- arguments: ['tmgmt_smartling']
-
- logger.smartling:
- class: Drupal\tmgmt_smartling\Logger\BufferLogger
- arguments: ['@http_client', '@logger.log_message_parser', '@config.factory', '@request_stack']
- calls:
- - [setConfigManager, ['@tmgmt_smartling.smartling_config_manager']]
- tags:
- - { name: logger }
-
- tmgmt_smartling.utils.context.job_url:
- class: Drupal\tmgmt_smartling\Context\TranslationJobToUrl
- arguments: ['@entity_type.manager']
-
- tmgmt_smartling.utils.context.current_user_auth:
- class: Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth
- arguments: ['@current_user']
-
- tmgmt_smartling.utils.context.user_auth:
- class: Drupal\tmgmt_smartling\Context\ContextUserAuth
- arguments: ['@current_user', '@entity_type.manager', '@module_handler', '@session_manager', '@session', '@logger.channel.smartling']
-
- tmgmt_smartling.utils.context.html_asset_inliner:
- class: Drupal\tmgmt_smartling\Context\HtmlAssetInliner
- arguments: []
-
- tmgmt_smartling.utils.context.uploader:
- class: Drupal\tmgmt_smartling\Context\ContextUploader
- 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']
-
- tmgmt_smartling.subscriber.request_translation:
- class: \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber
- arguments: ['@queue', '@tmgmt_smartling.utils.context.job_url']
- tags:
- - { name: 'event_subscriber' }
-
- tmgmt_smartling.subscriber.request:
- class: \Drupal\tmgmt_smartling\EventSubscriber\RequestSubscriber
- arguments: ['@queue', '@current_user']
- tags:
- - { name: 'event_subscriber' }
-
- tmgmt_smartling.event_subscriber.config:
- class: \Drupal\tmgmt_smartling\EventSubscriber\ConfigEventsSubscriber
- arguments: ['@cache_tags.invalidator']
- tags:
- - { name: 'event_subscriber' }
-
- tmgmt_smartling.smartling_api_factory:
- class: \Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory
-
- tmgmt_smartling.smartling_api_wrapper:
- class: \Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper
- arguments: ['@tmgmt_smartling.smartling_api_factory', '@logger.channel.smartling']
-
- tmgmt_smartling.bucket_job_manager:
- class: \Drupal\tmgmt_smartling\Smartling\BucketJobManager
- arguments: ['@logger.channel.smartling', '@tmgmt_smartling.smartling_api_wrapper', '@module_handler', '@tmgmt_extension_suit.utils.queue_unique_item']
-
- tmgmt_smartling.smartling_config_manager:
- class: \Drupal\tmgmt_smartling\Smartling\ConfigManager\SmartlingConfigManager
- arguments: ['@config.factory']
-
- tmgmt_smartling.firebase_config_manager:
- class: \Drupal\tmgmt_smartling\Smartling\ConfigManager\FirebaseConfigManager
- calls:
- - [setSmartlingApiWrapper, ['@tmgmt_smartling.smartling_api_wrapper']]
- - [setDefaultCache, ['@cache.default']]
- arguments: ['@config.factory']
-
- tmgmt_smartling.translation_request_manager:
- class: \Drupal\tmgmt_smartling\Smartling\Submission\TranslationRequestManager
- arguments: ['@tmgmt_smartling.smartling_api_wrapper', '@state', '@logger.channel.smartling']
-
- tmgmt_smartling.lock_fields_manager:
- class: \Drupal\tmgmt_smartling\Smartling\LockFields\LockFieldsManager
- arguments: ['@state', '@entity_type.manager', '@entity.repository']
-
- tmgmt_smartling.lock_fields_form_manager:
- class: \Drupal\tmgmt_smartling\Smartling\LockFields\LockFieldsFormManager
- arguments: ['@tmgmt_smartling.lock_fields_manager', '@language_manager']