services:
  social_content_report.flag_subscriber:
    class: Drupal\social_content_report\EventSubscriber\FlagSubscriber
    arguments:
      - '@config.factory'
      - '@messenger'
      - '@cache_tags.invalidator'
      - '@social_content_report.content_report_service'
    tags:
      - { name: event_subscriber }
  social_content_report.content_report_service:
    class: Drupal\social_content_report\ContentReportService
    arguments: ['@flag', '@current_user', '@module_handler', '@request_stack']
  social_content_report.route_subscriber:
    class: Drupal\social_content_report\Routing\RouteSubscriber
    tags:
      - { name: event_subscriber }
  social_content_report.translation_defaults:
    class: Drupal\social_content_report\ContentTranslationDefaultsConfigOverride
    arguments: ['@module_handler']
    tags:
      - { name: config.factory.override, priority: 5 }
