gotem_content_moderation-1.1.6-alpha1/gotem.services.yml

gotem.services.yml
services:
  gotem.openai_moderation_client:
    class: 'Drupal\gotem\OpenAIModerationClient'
    arguments: ['@http_client', '@config.factory']
    tags:
      - { name: 'gotem.moderation' }

  gotem.threshold_service:
    class: 'Drupal\gotem\Service\ThresholdService'
    arguments:
      - '@config.factory'
      - '@logger.channel.system'  # Inject the 'system' logger channel.

  content_moderation_subscriber:
    class: 'Drupal\gotem\EventSubscriber\ContentModerationSubscriber'
    arguments:
      - '@gotem.openai_moderation_client'
      - '@gotem.threshold_service'
      - '@current_user'
      - '@messenger'
      - '@logger.factory'
      - '@state'
      - '@string_translation'
    tags:
      - { name: 'event_subscriber' }

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc