You are here

user.services.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/user/user.services.yml
core/modules/user/user.services.yml

File

core/modules/user/user.services.yml
View source
  1. services:
  2. access_check.permission:
  3. class: Drupal\user\Access\PermissionAccessCheck
  4. tags:
  5. - { name: access_check, applies_to: _permission }
  6. access_check.user.register:
  7. class: Drupal\user\Access\RegisterAccessCheck
  8. tags:
  9. - { name: access_check, applies_to: _access_user_register }
  10. access_check.user.role:
  11. class: Drupal\user\Access\RoleAccessCheck
  12. tags:
  13. - { name: access_check, applies_to: _role }
  14. access_check.user.login_status:
  15. class: Drupal\user\Access\LoginStatusCheck
  16. tags:
  17. - { name: access_check, applies_to: _user_is_logged_in }
  18. user.authentication.cookie:
  19. class: Drupal\user\Authentication\Provider\Cookie
  20. arguments: ['@session_configuration', '@database', '@messenger']
  21. tags:
  22. - { name: authentication_provider, provider_id: 'cookie', priority: 0, global: TRUE }
  23. - { name: event_subscriber }
  24. user.data:
  25. class: Drupal\user\UserData
  26. arguments: ['@database']
  27. tags:
  28. - { name: backend_overridable }
  29. user_maintenance_mode_subscriber:
  30. class: Drupal\user\EventSubscriber\MaintenanceModeSubscriber
  31. arguments: ['@maintenance_mode', '@current_user']
  32. tags:
  33. - { name: event_subscriber }
  34. user_access_denied_subscriber:
  35. class: Drupal\user\EventSubscriber\AccessDeniedSubscriber
  36. arguments: ['@current_user']
  37. tags:
  38. - { name: event_subscriber }
  39. user_last_access_subscriber:
  40. class: Drupal\user\EventSubscriber\UserRequestSubscriber
  41. arguments: ['@current_user', '@entity_type.manager']
  42. tags:
  43. - { name: event_subscriber }
  44. theme.negotiator.admin_theme:
  45. class: Drupal\user\Theme\AdminNegotiator
  46. arguments: ['@current_user', '@config.factory', '@entity_type.manager', '@router.admin_context']
  47. tags:
  48. - { name: theme_negotiator, priority: -40 }
  49. user.auth:
  50. class: Drupal\user\UserAuth
  51. arguments: ['@entity_type.manager', '@password']
  52. user.permissions:
  53. class: Drupal\user\PermissionHandler
  54. arguments: ['@module_handler', '@string_translation', '@controller_resolver']
  55. user.current_user_context:
  56. class: Drupal\user\ContextProvider\CurrentUserContext
  57. arguments: ['@current_user', '@entity_type.manager']
  58. tags:
  59. - { name: 'context_provider' }
  60. user.toolbar_link_builder:
  61. class: Drupal\user\ToolbarLinkBuilder
  62. arguments: ['@current_user']
  63. user.flood_control:
  64. class: Drupal\user\UserFloodControl
  65. arguments: ['@flood', '@event_dispatcher', '@request_stack']
  66. user.flood_subscriber:
  67. class: Drupal\user\EventSubscriber\UserFloodSubscriber
  68. arguments: ['@logger.channel.user']
  69. tags:
  70. - { name: 'event_subscriber' }
  71. logger.channel.user:
  72. parent: logger.channel_base
  73. arguments: ['user']