services:
  wxt.4032404_exception_listener:
    class: Drupal\wxt_core\EventSubscriber\WxT4032404EventSubscriber
    arguments:
      - '@config.factory'
      - '@router.admin_context'
      - '@current_user'
    tags:
      - { name: event_subscriber }

  wxt.route_subscriber:
    class: '\Drupal\wxt_core\Routing\RouteSubscriber'
    arguments:
      - '@entity_type.manager'
    tags:
      -
        name: event_subscriber

  wxt.display_helper:
    class: '\Drupal\wxt_core\DisplayHelper'
    arguments:
      - '@entity_type.manager'
      - '@entity_field.manager'

  access_check.administrator_role:
    class: '\Drupal\wxt_core\Access\AdministrativeRoleCheck'
    arguments:
      - '@entity_type.manager'
    tags:
      -
        name: access_check
        applies_to: _is_administrator

  wxt.update_manager:
    class: '\Drupal\wxt_core\UpdateManager'
    arguments:
      - '@container.namespaces'
      - '@class_resolver'
      - '@config.factory'
      - '@extension.list.module'

  wxt.country_whitelist:
    class: '\Drupal\wxt_core\CountriesManager'
    arguments:
      - '@config.factory'
      - '@extension.list.module'
      - '@country_manager'
      - '@module_handler'
