core.services.yml 64.4 KB
Newer Older
1
parameters:
2 3 4 5 6 7 8 9 10
  session.storage.options:
    gc_probability: 1
    gc_divisor: 100
    gc_maxlifetime: 200000
    cookie_lifetime: 2000000
  twig.config:
    debug: false
    auto_reload: null
    cache: true
11
  renderer.config:
12
    required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
13 14 15 16
    auto_placeholder_conditions:
      max-age: 0
      contexts: ['session', 'user']
      tags: []
17 18
  factory.keyvalue:
    default: keyvalue.database
19
  http.response.debug_cacheability_headers: false
20 21
  factory.keyvalue.expirable:
    default: keyvalue.expirable.database
22 23 24 25 26 27 28 29 30 31 32 33 34 35
  filter_protocols:
    - http
    - https
    - ftp
    - news
    - nntp
    - tel
    - telnet
    - mailto
    - irc
    - ssh
    - sftp
    - webcal
    - rtsp
36 37 38 39 40 41 42 43
  cors.config:
    enabled: false
    allowedHeaders: []
    allowedMethods: []
    allowedOrigins: ['*']
    exposedHeaders: false
    maxAge: false
    supportsCredentials: false
44
services:
45 46
  # Simple cache contexts, directly derived from the request context.
  cache_context.ip:
47
    class: Drupal\Core\Cache\Context\IpCacheContext
48 49 50 51
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
  cache_context.headers:
52
    class: Drupal\Core\Cache\Context\HeadersCacheContext
53 54 55 56
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
  cache_context.cookies:
57
    class: Drupal\Core\Cache\Context\CookiesCacheContext
58 59 60
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
61 62 63 64 65
  cache_context.session:
    class: Drupal\Core\Cache\Context\SessionCacheContext
    arguments: ['@request_stack']
    tags:
      - { name: cache.context}
66 67 68 69 70
  cache_context.session.exists:
    class: Drupal\Core\Cache\Context\SessionExistsCacheContext
    arguments: ['@session_configuration', '@request_stack']
    tags:
      - { name: cache.context}
71
  cache_context.request_format:
72
    class: Drupal\Core\Cache\Context\RequestFormatCacheContext
73 74 75
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
76
  cache_context.url:
77
    class: Drupal\Core\Cache\Context\UrlCacheContext
78
    arguments: ['@request_stack']
79
    tags:
80
      - { name: cache.context }
81
  cache_context.url.site:
82
    class: Drupal\Core\Cache\Context\SiteCacheContext
83
    arguments: ['@request_stack']
84 85
    tags:
      - { name: cache.context }
86 87 88 89 90
  cache_context.url.path:
    class: Drupal\Core\Cache\Context\PathCacheContext
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
91 92 93 94 95
  cache_context.url.path.parent:
    class: Drupal\Core\Cache\Context\PathParentCacheContext
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
96 97 98 99 100
  cache_context.url.path.is_front:
    class: Drupal\Core\Cache\Context\IsFrontPathCacheContext
    arguments: ['@path.matcher']
    tags:
      - { name: cache.context }
101
  cache_context.url.query_args:
102
    class: Drupal\Core\Cache\Context\QueryArgsCacheContext
103 104 105 106
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
  cache_context.url.query_args.pagers:
107
    class: Drupal\Core\Cache\Context\PagersCacheContext
108 109 110 111 112 113
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }

  # Complex cache contexts, that depend on the routing system.
  cache_context.route:
114
    class: Drupal\Core\Cache\Context\RouteCacheContext
115 116 117 118
    arguments: ['@current_route_match']
    tags:
      - { name: cache.context }
  cache_context.route.name:
119
    class: Drupal\Core\Cache\Context\RouteNameCacheContext
120 121 122 123
    arguments: ['@current_route_match']
    tags:
      - { name: cache.context }
  cache_context.route.menu_active_trails:
124
    class: Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext
125 126 127 128 129 130 131 132 133
    calls:
      - [setContainer, ['@service_container']]
    tags:
      - { name: cache.context }

  # Complex cache contexts, that may be calculated from a combination of
  # multiple aspects of the request context plus additional logic. Hence they
  # are their own roots.
  cache_context.user:
134
    class: Drupal\Core\Cache\Context\UserCacheContext
135 136 137
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
138
  cache_context.user.permissions:
139
    class: Drupal\Core\Cache\Context\AccountPermissionsCacheContext
140 141 142
    arguments: ['@current_user', '@user_permissions_hash_generator']
    tags:
      - { name: cache.context}
143
  cache_context.user.roles:
144
    class: Drupal\Core\Cache\Context\UserRolesCacheContext
145
    arguments: ['@current_user']
146 147
    tags:
      - { name: cache.context}
148
  cache_context.user.is_super_user:
149
    class: Drupal\Core\Cache\Context\IsSuperUserCacheContext
150 151 152 153
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
  cache_context.languages:
154
    class: Drupal\Core\Cache\Context\LanguagesCacheContext
155 156 157 158
    arguments: ['@language_manager']
    tags:
      - { name: cache.context}
  cache_context.theme:
159
    class: Drupal\Core\Cache\Context\ThemeCacheContext
160
    arguments: ['@theme.manager']
161 162
    tags:
      - { name: cache.context}
163
  cache_context.timezone:
164
    class: Drupal\Core\Cache\Context\TimeZoneCacheContext
165 166
    tags:
      - { name: cache.context}
167 168 169 170

  cache_factory:
    class: Drupal\Core\Cache\CacheFactory
    arguments: ['@settings', '%cache_default_bin_backends%']
171 172
    calls:
      - [setContainer, ['@service_container']]
173
  cache_contexts_manager:
174
    class: Drupal\Core\Cache\Context\CacheContextsManager
175
    arguments: ['@service_container', '%cache_contexts%' ]
176 177 178 179 180 181 182 183 184 185 186 187
  cache_tags.invalidator:
    parent: container.trait
    class: Drupal\Core\Cache\CacheTagsInvalidator
    calls:
      - [setContainer, ['@service_container']]
    tags:
      - { name: service_collector, call: addInvalidator, tag: cache_tags_invalidator }
  cache_tags.invalidator.checksum:
    class: Drupal\Core\Cache\DatabaseCacheTagsChecksum
    arguments: ['@database']
    tags:
      - { name: cache_tags_invalidator}
188 189 190 191 192
  cache.backend.chainedfast:
    class: Drupal\Core\Cache\ChainedFastBackendFactory
    arguments: ['@settings']
    calls:
      - [setContainer, ['@service_container']]
193 194
  cache.backend.database:
    class: Drupal\Core\Cache\DatabaseBackendFactory
195
    arguments: ['@database', '@cache_tags.invalidator.checksum', '@settings']
196 197
  cache.backend.apcu:
    class: Drupal\Core\Cache\ApcuBackendFactory
198
    arguments: ['@app.root', '@site.path', '@cache_tags.invalidator.checksum']
199 200
  cache.backend.php:
    class: Drupal\Core\Cache\PhpBackendFactory
201
    arguments: ['@cache_tags.invalidator.checksum']
202 203 204 205 206 207 208 209 210
  cache.backend.memory:
    class: Drupal\Core\Cache\MemoryBackendFactory
  # A special cache bin that does not persist beyond the length of the request.
  cache.static:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin, default_backend: cache.backend.memory }
    factory: cache_factory:get
    arguments: [static]
211 212 213
  cache.bootstrap:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
214
      - { name: cache.bin, default_backend: cache.backend.chainedfast }
215
    factory: cache_factory:get
216
    arguments: [bootstrap]
217 218 219
  cache.config:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
220
      - { name: cache.bin, default_backend: cache.backend.chainedfast }
221
    factory: cache_factory:get
222
    arguments: [config]
223
  cache.default:
224 225 226
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
227
    factory: cache_factory:get
228
    arguments: [default]
229 230 231 232
  cache.entity:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
233
    factory: cache_factory:get
234
    arguments: [entity]
235 236 237 238
  cache.menu:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
239
    factory: cache_factory:get
240
    arguments: [menu]
241
  cache.render:
242 243 244
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
245
    factory: cache_factory:get
246 247
    arguments: [render]
  cache.data:
248 249 250
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
251
    factory: cache_factory:get
252
    arguments: [data]
253 254 255
  cache.discovery:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
256
      - { name: cache.bin, default_backend: cache.backend.chainedfast }
257
    factory: cache_factory:get
258
    arguments: [discovery]
259 260 261 262
  cache_router_rebuild_subscriber:
    class: Drupal\Core\EventSubscriber\CacheRouterRebuildSubscriber
    tags:
      - { name: event_subscriber }
263 264
  page_cache_request_policy:
    class: Drupal\Core\PageCache\DefaultRequestPolicy
265
    arguments: ['@session_configuration']
266 267 268 269 270 271
    tags:
      - { name: service_collector, tag: page_cache_request_policy, call: addPolicy}
  page_cache_response_policy:
    class: Drupal\Core\PageCache\ChainResponsePolicy
    tags:
      - { name: service_collector, tag: page_cache_response_policy, call: addPolicy}
272
    lazy: true
273 274 275 276
  page_cache_kill_switch:
    class: Drupal\Core\PageCache\ResponsePolicy\KillSwitch
    tags:
      - { name: page_cache_response_policy }
277
      - { name: dynamic_page_cache_response_policy }
278 279 280 281 282 283
  page_cache_no_cache_routes:
    class: Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes
    arguments: ['@current_route_match']
    public: false
    tags:
      - { name: page_cache_response_policy }
284
      - { name: dynamic_page_cache_response_policy }
285 286 287 288 289
  page_cache_no_server_error:
    class: Drupal\Core\PageCache\ResponsePolicy\NoServerError
    public: false
    tags:
      - { name: page_cache_response_policy }
290
      - { name: dynamic_page_cache_response_policy }
291 292
  config.manager:
    class: Drupal\Core\Config\ConfigManager
293
    arguments: ['@entity.manager', '@config.factory', '@config.typed', '@string_translation', '@config.storage', '@event_dispatcher']
294 295 296
  config.factory:
    class: Drupal\Core\Config\ConfigFactory
    tags:
297
      - { name: event_subscriber }
298
      - { name: service_collector, tag: 'config.factory.override', call: addOverride }
299
    arguments: ['@config.storage', '@event_dispatcher', '@config.typed']
300 301 302 303
  config.importer_subscriber:
    class: Drupal\Core\Config\Importer\FinalMissingContentSubscriber
    tags:
      - { name: event_subscriber }
304 305
  config.installer:
    class: Drupal\Core\Config\ConfigInstaller
306
    arguments: ['@config.factory', '@config.storage', '@config.typed', '@config.manager', '@event_dispatcher', '%install_profile%']
307
    lazy: true
308
  config.storage:
309 310
    class: Drupal\Core\Config\CachedStorage
    arguments: ['@config.storage.active', '@cache.config']
311 312 313
  config.storage.active:
    class: Drupal\Core\Config\DatabaseStorage
    arguments: ['@database', 'config']
314
    public: false
315 316
    tags:
      - { name: backend_overridable }
317 318
  # @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Use
  #   config.storage.sync instead.
319
  # @see https://www.drupal.org/node/2574957
320 321
  config.storage.staging:
    class: Drupal\Core\Config\FileStorage
322 323 324
    factory: Drupal\Core\Config\FileStorageFactory::getSync
  config.storage.sync:
    alias: config.storage.staging
325 326 327
  config.storage.snapshot:
    class: Drupal\Core\Config\DatabaseStorage
    arguments: ['@database', config_snapshot]
328 329
    tags:
      - { name: backend_overridable }
330
  config.storage.schema:
331
    class: Drupal\Core\Config\ExtensionInstallStorage
332
    arguments: ['@config.storage', 'config/schema', '', true, '%install_profile%']
333 334
  config.typed:
    class: Drupal\Core\Config\TypedConfigManager
335
    arguments: ['@config.storage', '@config.storage.schema', '@cache.discovery', '@module_handler', '@class_resolver']
336 337
    tags:
      - { name: plugin_manager_cache_clear }
338 339
    calls:
      - [setValidationConstraintManager, ['@validation.constraint']]
340 341 342
  context.handler:
    class: Drupal\Core\Plugin\Context\ContextHandler
    arguments: ['@typed_data_manager']
343 344 345
  context.repository:
    class: Drupal\Core\Plugin\Context\LazyContextRepository
    arguments: ['@service_container']
346 347
  cron:
    class: Drupal\Core\Cron
348
    arguments: ['@module_handler', '@lock', '@queue', '@state', '@account_switcher', '@logger.channel.cron', '@plugin.manager.queue_worker']
349
    lazy: true
350 351 352
  diff.formatter:
    class: Drupal\Core\Diff\DiffFormatter
    arguments: ['@config.factory']
353 354
  database:
    class: Drupal\Core\Database\Connection
355
    factory: Drupal\Core\Database\Database::getConnection
356
    arguments: [default]
357 358 359
  datetime.time:
    class: Drupal\Component\Datetime\Time
    arguments: ['@request_stack']
360 361 362
  file_system:
    class: Drupal\Core\File\FileSystem
    arguments: ['@stream_wrapper_manager', '@settings', '@logger.channel.file']
363 364
  form_builder:
    class: Drupal\Core\Form\FormBuilder
365
    arguments: ['@form_validator', '@form_submitter', '@form_cache', '@module_handler', '@event_dispatcher', '@request_stack', '@class_resolver', '@element_info', '@theme.manager', '@?csrf_token']
366 367
  form_validator:
    class: Drupal\Core\Form\FormValidator
368
    arguments: ['@request_stack', '@string_translation', '@csrf_token', '@logger.channel.form', '@form_error_handler']
369 370 371
  form_submitter:
    class: Drupal\Core\Form\FormSubmitter
    arguments: ['@request_stack', '@url_generator']
372 373
  form_error_handler:
    class: Drupal\Core\Form\FormErrorHandler
374 375
  form_cache:
    class: Drupal\Core\Form\FormCache
376
    arguments: ['@app.root', '@keyvalue.expirable', '@module_handler', '@current_user', '@csrf_token', '@logger.channel.form', '@request_stack', '@page_cache_request_policy']
377
    public: false  # Private to form_builder
378 379
  keyvalue:
    class: Drupal\Core\KeyValueStore\KeyValueFactory
380
    arguments: ['@service_container', '%factory.keyvalue%']
381 382
  keyvalue.database:
    class: Drupal\Core\KeyValueStore\KeyValueDatabaseFactory
383
    arguments: ['@serialization.phpserialize', '@database']
384 385
  keyvalue.expirable:
    class: Drupal\Core\KeyValueStore\KeyValueExpirableFactory
386
    arguments: ['@service_container', '%factory.keyvalue.expirable%']
387 388
  keyvalue.expirable.database:
    class: Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
389
    arguments: ['@serialization.phpserialize', '@database']
390 391 392 393 394
  logger.factory:
    class: Drupal\Core\Logger\LoggerChannelFactory
    parent: container.trait
    tags:
      - { name: service_collector, tag: logger, call: addLogger }
395 396
  logger.channel_base:
    abstract: true
397
    class: Drupal\Core\Logger\LoggerChannel
398
    factory: logger.factory:get
399 400
  logger.channel.default:
    parent: logger.channel_base
401
    arguments: ['system']
402
  logger.channel.php:
403
    parent: logger.channel_base
404
    arguments: ['php']
405
  logger.channel.image:
406
    parent: logger.channel_base
407
    arguments: ['image']
408
  logger.channel.cron:
409
    parent: logger.channel_base
410
    arguments: ['cron']
411 412
  logger.channel.file:
    class: Drupal\Core\Logger\LoggerChannel
413
    factory: logger.factory:get
414
    arguments: ['file']
415
  logger.channel.form:
416
    parent: logger.channel_base
417
    arguments: ['form']
418 419
  logger.log_message_parser:
    class: Drupal\Core\Logger\LogMessageParser
420 421 422 423 424 425 426 427

  serialization.json:
    class: Drupal\Component\Serialization\Json
  serialization.phpserialize:
    class: Drupal\Component\Serialization\PhpSerialize
  serialization.yaml:
    class: Drupal\Component\Serialization\Yaml

428
  settings:
429
    class: Drupal\Core\Site\Settings
430
    factory: Drupal\Core\Site\Settings::getInstance
431
  state:
432
    class: Drupal\Core\State\State
433 434 435
    arguments: ['@keyvalue', '@cache.bootstrap', '@lock']
    tags:
      - { name: needs_destruction }
436 437 438 439 440 441 442 443 444 445 446 447
  queue:
    class: Drupal\Core\Queue\QueueFactory
    arguments: ['@settings']
    calls:
      - [setContainer, ['@service_container']]
  queue.database:
    class: Drupal\Core\Queue\QueueDatabaseFactory
    arguments: ['@database']
  path.alias_whitelist:
    class: Drupal\Core\Path\AliasWhitelist
    tags:
      - { name: needs_destruction }
448
    arguments: [path_alias_whitelist, '@cache.bootstrap', '@lock', '@state', '@path.alias_storage']
449 450
  path.alias_manager:
    class: Drupal\Core\Path\AliasManager
451
    arguments: ['@path.alias_storage', '@path.alias_whitelist', '@language_manager', '@cache.data']
452 453 454
  path.current:
    class: Drupal\Core\Path\CurrentPathStack
    arguments: ['@request_stack']
455 456 457 458 459 460 461 462 463
  http_handler_stack:
    class: GuzzleHttp\HandlerStack
    public: false
    factory: GuzzleHttp\HandlerStack::create
    configurator: ['@http_handler_stack_configurator', configure]
  http_handler_stack_configurator:
    class: Drupal\Core\Http\HandlerStackConfigurator
    public: false
    arguments: ['@service_container']
464
  http_client:
465 466 467 468 469
    class: GuzzleHttp\Client
    factory: http_client_factory:fromOptions
  http_client_factory:
    class: Drupal\Core\Http\ClientFactory
    arguments: ['@http_handler_stack']
470 471 472
  plugin.manager.link_relation_type:
    class: \Drupal\Core\Http\LinkRelationTypeManager
    arguments: ['@app.root', '@module_handler', '@cache.discovery']
473 474
  theme.negotiator:
    class: Drupal\Core\Theme\ThemeNegotiator
475
    arguments: ['@access_check.theme', '@class_resolver']
476
    tags:
477
      - { name: service_id_collector, tag: theme_negotiator }
478 479 480 481 482 483 484
  theme.negotiator.default:
    class: Drupal\Core\Theme\DefaultNegotiator
    arguments: ['@config.factory']
    tags:
      - { name: theme_negotiator, priority: -100 }
  theme.negotiator.ajax_base_page:
    class: Drupal\Core\Theme\AjaxBasePageNegotiator
485
    arguments: ['@csrf_token', '@config.factory', '@request_stack']
486 487
    tags:
      - { name: theme_negotiator, priority: 1000 }
488 489 490
  container.namespaces:
    class: ArrayObject
    arguments: [ '%container.namespaces%' ]
491 492 493 494
  container.trait:
    abstract: true
    calls:
      - [setContainer, ['@service_container']]
495 496
  default_plugin_manager:
    abstract: true
497
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
498
  module_handler:
499
    class: Drupal\Core\Extension\ModuleHandler
500 501 502
    arguments: ['@app.root', '%container.modules%', '@cache.bootstrap']
  module_installer:
    class: Drupal\Core\Extension\ModuleInstaller
503 504
    tags:
      - { name: service_collector, tag: 'module_install.uninstall_validator', call: addUninstallValidator }
505
    arguments: ['@app.root', '@module_handler', '@kernel', '@router.builder']
506
    lazy: true
507 508 509 510
  content_uninstall_validator:
    class: Drupal\Core\Entity\ContentUninstallValidator
    tags:
      - { name: module_install.uninstall_validator }
511
    arguments: ['@entity.manager', '@string_translation']
512
    lazy: true
513 514 515 516
  field_uninstall_validator:
    class: Drupal\Core\Field\FieldModuleUninstallValidator
    tags:
      - { name: module_install.uninstall_validator }
517
    arguments: ['@entity.manager', '@string_translation']
518
    lazy: true
519 520 521 522 523 524
  required_module_uninstall_validator:
    class: Drupal\Core\Extension\RequiredModuleUninstallValidator
    tags:
      - { name: module_install.uninstall_validator }
    arguments: ['@string_translation']
    lazy: true
525 526
  theme_handler:
    class: Drupal\Core\Extension\ThemeHandler
527 528 529 530
    arguments: ['@app.root', '@config.factory', '@module_handler', '@state', '@info_parser']
  theme_installer:
    class: Drupal\Core\Extension\ThemeInstaller
    arguments: ['@theme_handler', '@config.factory', '@config.installer', '@module_handler', '@config.manager', '@asset.css.collection_optimizer', '@router.builder', '@logger.channel.default', '@state']
531 532
  # @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Use the other
  #   entity* services instead.
533
  entity.manager:
534 535
    # We cannot set the deprecated property here because many test cases still
    # rely on this service and they would fail with deprecation warnings.
536
    class: Drupal\Core\Entity\EntityManager
537
    parent: container.trait
538
    # @todo Remove this tag in https://www.drupal.org/node/2549143.
539 540
    tags:
      - { name: plugin_manager_cache_clear }
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
  entity_type.manager:
    class: Drupal\Core\Entity\EntityTypeManager
    arguments: ['@container.namespaces', '@module_handler', '@cache.discovery', '@string_translation', '@class_resolver']
    parent: container.trait
    tags:
      - { name: plugin_manager_cache_clear }
  entity_type.repository:
    class: Drupal\Core\Entity\EntityTypeRepository
    arguments: ['@entity_type.manager']
  entity_type.bundle.info:
    class: Drupal\Core\Entity\EntityTypeBundleInfo
    arguments: ['@entity_type.manager', '@language_manager', '@module_handler', '@typed_data_manager', '@cache.discovery']
  entity.repository:
    class: Drupal\Core\Entity\EntityRepository
    arguments: ['@entity_type.manager', '@language_manager']
  entity_display.repository:
    class: Drupal\Core\Entity\EntityDisplayRepository
    arguments: ['@entity_type.manager', '@module_handler', '@cache.discovery', '@language_manager']
  entity_field.manager:
    class: Drupal\Core\Entity\EntityFieldManager
    arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@entity_display.repository', '@typed_data_manager', '@language_manager', '@keyvalue', '@module_handler', '@cache.discovery']
  entity_type.listener:
    class: Drupal\Core\Entity\EntityTypeListener
    arguments: ['@entity_type.manager', '@entity_field.manager', '@event_dispatcher', '@entity.last_installed_schema.repository']
  entity_bundle.listener:
    class: Drupal\Core\Entity\EntityBundleListener
    arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@entity_field.manager', '@module_handler']
568 569 570 571 572
  entity_route_subscriber:
    class: Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber
    arguments: ['@entity.manager']
    tags:
      - { name: event_subscriber }
573 574 575
  entity.definition_update_manager:
    class: Drupal\Core\Entity\EntityDefinitionUpdateManager
    arguments: ['@entity.manager']
576 577 578 579 580 581 582 583 584
  entity.last_installed_schema.repository:
    class: Drupal\Core\Entity\EntityLastInstalledSchemaRepository
    arguments: ['@keyvalue']
  field_storage_definition.listener:
    class: Drupal\Core\Field\FieldStorageDefinitionListener
    arguments: ['@entity_type.manager', '@event_dispatcher', '@entity.last_installed_schema.repository', '@entity_field.manager']
  field_definition.listener:
    class: Drupal\Core\Field\FieldDefinitionListener
    arguments: ['@entity_type.manager', '@entity_field.manager', '@keyvalue', '@cache.discovery']
585 586 587
  entity.form_builder:
    class: Drupal\Core\Entity\EntityFormBuilder
    arguments: ['@entity.manager', '@form_builder']
588 589 590 591 592
  entity.bundle_config_import_validator:
    class: Drupal\Core\Entity\Event\BundleConfigImportValidate
    arguments: ['@config.manager', '@entity.manager']
    tags:
      - { name: event_subscriber }
593 594 595
  entity.autocomplete_matcher:
    class: Drupal\Core\Entity\EntityAutocompleteMatcher
    arguments: ['@plugin.manager.entity_reference_selection']
596 597 598
  plugin_form.factory:
    class: Drupal\Core\Plugin\PluginFormFactory
    arguments: ['@class_resolver']
599 600 601
  plugin.manager.entity_reference_selection:
    class: Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager
    parent: default_plugin_manager
602 603 604
  plugin.manager.block:
    class: Drupal\Core\Block\BlockManager
    parent: default_plugin_manager
605 606
  plugin.manager.field.field_type:
    class: Drupal\Core\Field\FieldTypePluginManager
607
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@typed_data_manager']
608 609
  plugin.manager.field.widget:
    class: Drupal\Core\Field\WidgetPluginManager
610
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@plugin.manager.field.field_type']
611 612
  plugin.manager.field.formatter:
    class: Drupal\Core\Field\FormatterPluginManager
613
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@plugin.manager.field.field_type']
614 615
  plugin.manager.archiver:
    class: Drupal\Core\Archiver\ArchiverManager
616
    parent: default_plugin_manager
617 618
  plugin.manager.action:
    class: Drupal\Core\Action\ActionManager
619
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
620 621 622
  plugin.manager.menu.link:
    class: Drupal\Core\Menu\MenuLinkManager
    arguments: ['@menu.tree_storage', '@menu_link.static.overrides', '@module_handler']
623 624
  menu.link_tree:
    class: Drupal\Core\Menu\MenuLinkTree
625
    arguments: ['@menu.tree_storage', '@plugin.manager.menu.link', '@router.route_provider', '@menu.active_trail', '@controller_resolver']
626 627
  menu.default_tree_manipulators:
    class: Drupal\Core\Menu\DefaultMenuLinkTreeManipulators
628
    arguments: ['@access_manager', '@current_user', '@entity_type.manager']
629 630
  menu.active_trail:
    class: Drupal\Core\Menu\MenuActiveTrail
631 632 633
    arguments: ['@plugin.manager.menu.link', '@current_route_match', '@cache.menu', '@lock']
    tags:
      - { name: needs_destruction }
634 635 636
  menu.parent_form_selector:
    class: Drupal\Core\Menu\MenuParentFormSelector
    arguments: ['@menu.link_tree', '@entity.manager', '@string_translation']
637 638
  plugin.manager.menu.local_action:
    class: Drupal\Core\Menu\LocalActionManager
639
    arguments: ['@controller_resolver', '@request_stack', '@current_route_match', '@router.route_provider', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user']
640 641
  plugin.manager.menu.local_task:
    class: Drupal\Core\Menu\LocalTaskManager
642
    arguments: ['@controller_resolver', '@request_stack', '@current_route_match', '@router.route_provider', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user']
643 644
  plugin.manager.menu.contextual_link:
    class: Drupal\Core\Menu\ContextualLinkManager
645
    arguments: ['@controller_resolver', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user', '@request_stack']
646 647 648
  plugin.manager.display_variant:
    class: Drupal\Core\Display\VariantManager
    parent: default_plugin_manager
649 650 651
  plugin.manager.queue_worker:
    class: Drupal\Core\Queue\QueueWorkerManager
    parent: default_plugin_manager
652 653
  plugin.cache_clearer:
    class: Drupal\Core\Plugin\CachedDiscoveryClearer
654
    lazy: true
655 656 657 658 659
  paramconverter.menu_link:
    class: Drupal\Core\ParamConverter\MenuLinkPluginConverter
    tags:
      - { name: paramconverter }
    arguments: ['@plugin.manager.menu.link']
660
    lazy: true
661 662
  menu.tree_storage:
    class: Drupal\Core\Menu\MenuTreeStorage
663
    arguments: ['@database', '@cache.menu', '@cache_tags.invalidator', 'menu_tree']
664
    public: false  # Private to plugin.manager.menu.link and menu.link_tree
665 666
    tags:
      - { name: backend_overridable }
667 668 669
  menu_link.static.overrides:
    class: Drupal\Core\Menu\StaticMenuLinkOverrides
    arguments: ['@config.factory']
670 671
  request_stack:
    class: Symfony\Component\HttpFoundation\RequestStack
672 673
    tags:
      - { name: persist }
674 675 676
  current_route_match:
     class: Drupal\Core\Routing\CurrentRouteMatch
     arguments: ['@request_stack']
677
  event_dispatcher:
678
    class: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
679
    arguments: ['@service_container']
680 681
  app.root:
    class: SplString
682
    factory: app.root.factory:get
683 684
    tags:
      - { name: parameter_service }
685 686 687
  app.root.factory:
    class: Drupal\Core\AppRootFactory
    arguments: ['@kernel']
688
    public: false
689 690 691 692 693 694 695 696 697
  site.path:
    class: SplString
    factory: site.path.factory:get
    tags:
      - { name: parameter_service }
  site.path.factory:
    class: Drupal\Core\SitePathFactory
    arguments: ['@kernel']
    public: false
698
  controller_resolver:
699
    class: Drupal\Core\Controller\ControllerResolver
700
    arguments: ['@psr7.http_message_factory', '@class_resolver']
701 702 703 704
  class_resolver:
    class: Drupal\Core\DependencyInjection\ClassResolver
    calls:
      - [setContainer, ['@service_container']]
705 706 707
  title_resolver:
    class: Drupal\Core\Controller\TitleResolver
    arguments: ['@controller_resolver', '@string_translation']
708
  http_kernel:
709
    class: Stack\StackedHttpKernel
710
  http_kernel.basic:
711
    class: Symfony\Component\HttpKernel\HttpKernel
712
    arguments: ['@event_dispatcher', '@controller_resolver', '@request_stack']
713 714 715 716
  http_middleware.negotiation:
    class: Drupal\Core\StackMiddleware\NegotiationMiddleware
    tags:
      - { name: http_middleware, priority: 400 }
717 718 719 720 721 722 723 724 725 726
  http_middleware.reverse_proxy:
    class: Drupal\Core\StackMiddleware\ReverseProxyMiddleware
    arguments: ['@settings']
    tags:
      - { name: http_middleware, priority: 300 }
  http_middleware.kernel_pre_handle:
    class: Drupal\Core\StackMiddleware\KernelPreHandle
    arguments: ['@kernel']
    tags:
      - { name: http_middleware, priority: 100 }
727 728 729 730 731 732
  http_middleware.session:
    class: Drupal\Core\StackMiddleware\Session
    tags:
      - { name: http_middleware, priority: 50 }
    calls:
      - [setContainer, ['@service_container']]
733 734 735 736
  http_middleware.cors:
     class: Asm89\Stack\Cors
     arguments: ['%cors.config%']
     tags:
737
       - { name: http_middleware, priority: 250 }
738 739 740 741
  psr7.http_foundation_factory:
    class: Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory
  psr7.http_message_factory:
    class: Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory
742 743
  language_manager:
    class: Drupal\Core\Language\LanguageManager
744
    arguments: ['@language.default']
745 746 747 748 749
  language.current_language_context:
    class: Drupal\Core\Language\ContextProvider\CurrentLanguageContext
    arguments: ['@language_manager']
    tags:
      - { name: 'context_provider' }
750 751 752
  language.default:
    class: Drupal\Core\Language\LanguageDefault
    arguments: ['%language.default_values%']
753 754
  string_translator.custom_strings:
    class: Drupal\Core\StringTranslation\Translator\CustomStrings
755
    arguments: ['@settings']
756 757 758 759
    tags:
      - { name: string_translator, priority: 30 }
  string_translation:
    class: Drupal\Core\StringTranslation\TranslationManager
760
    arguments: ['@language.default']
761 762
    tags:
      - { name: service_collector, tag: string_translator, call: addTranslator }
763
  database.replica:
764
    class: Drupal\Core\Database\Connection
765
    factory: Drupal\Core\Database\Database::getConnection
766
    arguments: [replica]
767
  typed_data_manager:
768
    class: Drupal\Core\TypedData\TypedDataManager
769
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@class_resolver']
770 771
    calls:
      - [setValidationConstraintManager, ['@validation.constraint']]
772 773
    tags:
      - { name: plugin_manager_cache_clear }
774 775
  validation.constraint:
    class: Drupal\Core\Validation\ConstraintManager
776
    parent: default_plugin_manager
777 778
    tags:
      - { name: plugin_manager_cache_clear }
779 780
  lock:
    class: Drupal\Core\Lock\DatabaseLockBackend
781
    arguments: ['@database']
782 783
    tags:
      - { name: backend_overridable }
784
    lazy: true
785 786 787
  lock.persistent:
    class: Drupal\Core\Lock\PersistentDatabaseLockBackend
    arguments: ['@database']
788 789
    tags:
      - { name: backend_overridable }
790
    lazy: true
791
  router.request_context:
792
    class: Drupal\Core\Routing\RequestContext
793 794
    tags:
      - { name: persist }
795 796
    calls:
      - [fromRequestStack, ['@request_stack']]
797 798
  router.admin_context:
    class: Drupal\Core\Routing\AdminContext
799
    arguments: ['@current_route_match']
800 801
  router.route_provider:
    class: Drupal\Core\Routing\RouteProvider
802
    arguments: ['@database', '@state', '@path.current', '@cache.data', '@path_processor_manager', '@cache_tags.invalidator']
803 804
    tags:
      - { name: event_subscriber }
805
      - { name: backend_overridable }
806 807 808
  router.route_provider.lazy_builder:
    class: Drupal\Core\Routing\RouteProviderLazyBuilder
    arguments: ['@router.route_provider', '@router.builder']
809 810
  router.route_preloader:
    class: Drupal\Core\Routing\RoutePreloader
811
    arguments: ['@router.route_provider', '@state', '@cache.bootstrap']
812 813
    tags:
      - { name: 'event_subscriber' }
814 815
  router.matcher.final_matcher:
    class: Drupal\Core\Routing\UrlMatcher
816
    arguments: ['@path.current']
817
    deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
818 819 820 821 822
  router.matcher:
    class: Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher
    arguments: ['@router.route_provider']
    calls:
      - [setFinalMatcher, ['@router.matcher.final_matcher']]
823
    tags:
824
      - { name: service_collector, tag: non_lazy_route_filter, call: addRouteFilter }
825
    deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
826 827 828 829 830 831 832 833 834 835
  route_filter.lazy_collector:
    class: Drupal\Core\Routing\LazyRouteFilter
    tags:
      - { name: non_lazy_route_filter }
    parent: container.trait
  route_filter_subscriber:
    class: Drupal\Core\EventSubscriber\RouteFilterSubscriber
    arguments: ['@route_filter.lazy_collector']
    tags:
      - { name: event_subscriber }
836
  url_generator.non_bubbling:
837
    class: Drupal\Core\Routing\UrlGenerator
838
    arguments: ['@router.route_provider', '@path_processor_manager', '@route_processor_manager', '@request_stack', '%filter_protocols%']
839 840 841 842 843 844
    public: false
    calls:
      - [setContext, ['@?router.request_context']]
  url_generator:
    class: Drupal\Core\Render\MetadataBubblingUrlGenerator
    arguments: ['@url_generator.non_bubbling', '@renderer']
845
    calls:
846
      - [setContext, ['@?router.request_context']]
847 848 849
  redirect.destination:
    class: Drupal\Core\Routing\RedirectDestination
    arguments: ['@request_stack', '@url_generator']
850 851
  unrouted_url_assembler:
    class: Drupal\Core\Utility\UnroutedUrlAssembler
852
    arguments: ['@request_stack', '@path_processor_manager', '%filter_protocols%']
853 854
  link_generator:
    class: Drupal\Core\Utility\LinkGenerator
855
    arguments: ['@url_generator', '@module_handler', '@renderer']
856 857 858
  router:
    class: Drupal\Core\Routing\AccessAwareRouter
    arguments: ['@router.no_access_checks', '@access_manager', '@current_user']
859 860
  router.dynamic:
    class: Symfony\Cmf\Component\Routing\DynamicRouter
861
    arguments: ['@router.request_context', '@router.matcher', '@url_generator']
862
    tags:
863
      - { name: service_collector, tag: non_lazy_route_enhancer, call: addRouteEnhancer }
864
    deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
865
  router.no_access_checks:
866 867 868 869 870
    class: \Drupal\Core\Routing\Router
    arguments: ['@router.route_provider', '@path.current', '@url_generator']
    tags:
      - { name: service_collector, tag: non_lazy_route_enhancer, call: addRouteEnhancer }
      - { name: service_collector, tag: non_lazy_route_filter, call: addRouteFilter }
871 872
    calls:
      - [setContext, ['@router.request_context']]
873 874 875 876 877
  router.path_roots_subscriber:
    class: Drupal\Core\EventSubscriber\PathRootsSubscriber
    arguments: ['@state']
    tags:
      - { name: event_subscriber }
878 879
  entity.query:
    class: Drupal\Core\Entity\Query\QueryFactory
880
    arguments: ['@entity.manager']
881 882 883 884
    calls:
      - [setContainer, ['@service_container']]
  entity.query.config:
    class: Drupal\Core\Config\Entity\Query\QueryFactory
885 886 887
    arguments: ['@config.factory', '@keyvalue', '@config.manager']
    tags:
      - { name: event_subscriber }
888 889 890
  entity.query.sql:
    class: Drupal\Core\Entity\Query\Sql\QueryFactory
    arguments: ['@database']
891 892
    tags:
      - { name: backend_overridable }
893 894 895
  pgsql.entity.query.sql:
    class: Drupal\Core\Entity\Query\Sql\pgsql\QueryFactory
    arguments: ['@database']
896 897
  entity.query.null:
    class: Drupal\Core\Entity\Query\Null\QueryFactory
898 899 900
  entity.query.keyvalue:
    class: Drupal\Core\Entity\KeyValueStore\Query\QueryFactory
    arguments: ['@keyvalue']
901 902
  router.dumper:
    class: Drupal\Core\Routing\MatcherDumper
903
    arguments: ['@database', '@state']
904 905
    tags:
      - { name: backend_overridable }
906
    lazy: true
907 908
  router.builder:
    class: Drupal\Core\Routing\RouteBuilder
909
    arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler', '@controller_resolver', '@access_manager.check_provider']
910
    lazy: true
911
    tags:
912
      - { name: needs_destruction }
913 914 915
  menu.rebuild_subscriber:
    class: Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber
    arguments: ['@lock', '@plugin.manager.menu.link']
916 917
    tags:
      - { name: event_subscriber }
918 919
  path.alias_storage:
    class: Drupal\Core\Path\AliasStorage
920
    arguments: ['@database', '@module_handler']
921 922
    tags:
      - { name: backend_overridable }
923 924
  path.matcher:
    class: Drupal\Core\Path\PathMatcher
925
    arguments: ['@config.factory', '@current_route_match']
926 927
  path.validator:
    class: Drupal\Core\Path\PathValidator
928
    arguments: ['@router', '@router.no_access_checks', '@current_user', '@path_processor_manager']
929

930 931 932 933 934 935 936 937 938
# The argument to the hashing service defined in services.yml, to the
# constructor of PhpassHashedPassword is the log2 number of iterations for
# password stretching.
# @todo increase by 1 every Drupal version in order to counteract increases in
# the speed and power of computers available to crack the hashes. The current
# password hashing method was introduced in Drupal 7 with a log2 count of 15.
  password:
    class: Drupal\Core\Password\PhpassHashedPassword
    arguments: [16]
939 940
  request_format_route_filter:
    class: Drupal\Core\Routing\RequestFormatRouteFilter
941 942
    tags:
      - { name: route_filter }
943 944 945 946
  method_filter:
    class: Drupal\Core\Routing\MethodFilter
    tags:
      - { name: route_filter, priority: 1 }
947 948
  content_type_header_matcher:
    class: Drupal\Core\Routing\ContentTypeHeaderMatcher
949 950 951 952
    tags:
      - { name: route_filter }
  paramconverter_manager:
    class: Drupal\Core\ParamConverter\ParamConverterManager
953 954
    tags:
      - { name: service_collector, tag: paramconverter, call: addConverter }
955 956 957 958 959
  paramconverter_subscriber:
    class: Drupal\Core\EventSubscriber\ParamConverterSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@paramconverter_manager']
960 961 962 963
  paramconverter.entity:
    class: Drupal\Core\ParamConverter\EntityConverter
    tags:
      - { name: paramconverter }
964
    arguments: ['@entity.manager']
965 966 967 968
  paramconverter.entity_revision:
    class: Drupal\Core\ParamConverter\EntityRevisionParamConverter
    tags:
      - { name: paramconverter }
969
    arguments: ['@entity_type.manager', '@entity.repository']
970 971 972 973 974 975
  paramconverter.configentity_admin:
    class: Drupal\Core\ParamConverter\AdminPathConfigEntityConverter
    tags:
      # Use a higher priority than EntityConverter, see the class for details.
      - { name: paramconverter, priority: 5 }
    arguments: ['@entity.manager', '@config.factory', '@router.admin_context']
976
    lazy: true
977 978 979 980 981
  route_subscriber.module:
    class: Drupal\Core\EventSubscriber\ModuleRouteSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@module_handler']
982 983
  resolver_manager.entity:
    class: Drupal\Core\Entity\EntityResolverManager
984
    arguments: ['@entity.manager', '@class_resolver']
985 986 987 988
  route_subscriber.entity:
    class: Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber
    tags:
      - { name: event_subscriber }
989
    arguments: ['@resolver_manager.entity']
990 991 992
  ajax_response.subscriber:
    class: Drupal\Core\EventSubscriber\AjaxResponseSubscriber
    arguments: ['@ajax_response.attachments_processor']
993 994
    tags:
      - { name: event_subscriber }
995 996
  form_ajax_subscriber:
    class: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber
997
    arguments: ['@form_ajax_response_builder', '@string_translation']
998 999
    tags:
      - { name: event_subscriber }
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009
  route_enhancer.lazy_collector:
    class: Drupal\Core\Routing\LazyRouteEnhancer
    tags:
      - { name: non_lazy_route_enhancer, priority: 5000 }
    parent: container.trait
  route_enhancer_subscriber:
    class: Drupal\Core\EventSubscriber\RouteEnhancerSubscriber
    arguments: ['@route_enhancer.lazy_collector']
    tags:
      - { name: event_subscriber }
1010 1011 1012 1013 1014 1015
  route_enhancer.param_conversion:
    class: Drupal\Core\Routing\Enhancer\ParamConversionEnhancer
    arguments: ['@paramconverter_manager']
    tags:
      - { name: route_enhancer }
      - { name: event_subscriber }
1016 1017 1018 1019
  route_enhancer.form:
    class: Drupal\Core\Routing\Enhancer\FormRouteEnhancer
    tags:
      - { name: route_enhancer }
1020 1021
  route_enhancer.entity:
    class: Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
1022
    tags: