services:

  plugin.manager.password_policy.password_constraint:
    class: Drupal\password_policy\PasswordConstraintPluginManager
    parent: default_plugin_manager

  password_policy_event_subscriber:
      class: Drupal\password_policy\EventSubscriber\PasswordPolicyEventSubscriber
      arguments:
        - '@current_user'
        - '@entity_type.manager'
        - '@messenger'
        - '@request_stack'
      tags:
        - {name: event_subscriber}
  password_policy.validator:
    class: Drupal\password_policy\PasswordPolicyValidator
    arguments: ['@entity_type.manager', '@plugin.manager.password_policy.password_constraint']
