user.services.yml 1.96 KB
Newer Older
1 2 3 4
services:
  access_check.permission:
    class: Drupal\user\Access\PermissionAccessCheck
    tags:
5
      - { name: access_check, applies_to: _permission }
6 7 8
  access_check.user.register:
    class: Drupal\user\Access\RegisterAccessCheck
    tags:
9
      - { name: access_check, applies_to: _access_user_register }
10 11 12
  access_check.user.role:
    class: Drupal\user\Access\RoleAccessCheck
    tags:
13
      - { name: access_check, applies_to: _role }
14 15 16
  access_check.user.login_status:
    class: Drupal\user\Access\LoginStatusCheck
    tags:
17
      - { name: access_check, applies_to: _user_is_logged_in }
18 19 20 21 22
  authentication.cookie:
    class: Drupal\Core\Authentication\Provider\Cookie
    arguments: ['@session_manager']
    tags:
      - { name: authentication_provider, priority: 0 }
23 24 25 26 27 28 29 30 31 32
  cache_context.user:
    class: Drupal\user\Cache\UserCacheContext
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
  cache_context.user.roles:
    class: Drupal\user\Cache\UserRolesCacheContext
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
33 34 35 36 37
  user.data:
    class: Drupal\user\UserData
    arguments: ['@database']
  user.autocomplete:
    class: Drupal\user\UserAutocomplete
38
    arguments: ['@database', '@config.factory', '@entity.manager', '@entity.query']
39 40 41 42
  user_maintenance_mode_subscriber:
    class: Drupal\user\EventSubscriber\MaintenanceModeSubscriber
    tags:
      - { name: event_subscriber }
43 44
  theme.negotiator.admin_theme:
    class: Drupal\user\Theme\AdminNegotiator
45
    arguments: ['@current_user', '@config.factory', '@entity.manager', '@router.admin_context']
46 47
    tags:
      - { name: theme_negotiator, priority: -40 }
48 49
  user.permissions_hash:
    class: Drupal\user\PermissionsHash
50
    arguments: ['@private_key', '@cache.default']
51 52 53
  user.auth:
    class: Drupal\user\UserAuth
    arguments: ['@entity.manager', '@password']
54 55 56
  user.tempstore:
    class: Drupal\user\TempStoreFactory
    arguments: ['@serialization.phpserialize', '@database', '@lock']