services:
  social_user.route_subscriber:
    class: Drupal\social_user\Routing\RouteSubscriber
    arguments: ['@config.factory']
    tags:
      - { name: event_subscriber }
  social_user.username_constraint:
    class: Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraintValidator
    arguments: ['@typed_data_manager']
  social_user.user_route_context:
    class: Drupal\social_user\ContextProvider\UserRouteContext
    arguments: ['@current_route_match', '@entity_type.manager']
    tags:
      - { name: context_provider }
  social_user.redirect_subscriber:
    class: Drupal\social_user\EventSubscriber\RedirectSubscriber
    arguments: ['@current_route_match', '@current_user', '@config.factory']
    tags:
      - { name: event_subscriber }
