user.services.yml 2.62 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
  user.authentication.cookie:
19 20
    class: Drupal\user\Authentication\Provider\Cookie
    arguments: ['@session_configuration', '@database']
21
    tags:
22
      - { name: authentication_provider, provider_id: 'cookie', priority: 0, global: TRUE }
23 24 25
  user.data:
    class: Drupal\user\UserData
    arguments: ['@database']
26 27
    tags:
      - { name: backend_overridable }
28 29
  user_maintenance_mode_subscriber:
    class: Drupal\user\EventSubscriber\MaintenanceModeSubscriber
30
    arguments: ['@maintenance_mode', '@current_user']
31 32
    tags:
      - { name: event_subscriber }
33 34 35 36 37
  user_access_denied_subscriber:
    class: Drupal\user\EventSubscriber\AccessDeniedSubscriber
    arguments: ['@current_user', '@url_generator']
    tags:
      - { name: event_subscriber }
38 39 40 41 42
  user_last_access_subscriber:
    class: Drupal\user\EventSubscriber\UserRequestSubscriber
    arguments: ['@current_user', '@entity.manager']
    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 50
  user.auth:
    class: Drupal\user\UserAuth
    arguments: ['@entity.manager', '@password']
51 52 53 54 55 56 57
  user.private_tempstore:
    class: Drupal\user\PrivateTempStoreFactory
    arguments: ['@keyvalue.expirable', '@lock', '@current_user', '@request_stack', '%user.tempstore.expire%']
    tags:
      - { name: backend_overridable }
  user.shared_tempstore:
    class: Drupal\user\SharedTempStoreFactory
58
    arguments: ['@keyvalue.expirable', '@lock', '@request_stack', '%user.tempstore.expire%']
59 60
    tags:
      - { name: backend_overridable }
61 62
  user.permissions:
    class: Drupal\user\PermissionHandler
63
    arguments: ['@module_handler', '@string_translation', '@controller_resolver']
64 65 66 67 68
  user.current_user_context:
    class: Drupal\user\ContextProvider\CurrentUserContext
    arguments: ['@current_user', '@entity.manager']
    tags:
      - { name: 'context_provider' }
69 70 71

parameters:
  user.tempstore.expire: 604800