core.services.yml 63 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
  cache_context.url.query_args:
97
    class: Drupal\Core\Cache\Context\QueryArgsCacheContext
98 99 100 101
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }
  cache_context.url.query_args.pagers:
102
    class: Drupal\Core\Cache\Context\PagersCacheContext
103 104 105 106 107 108
    arguments: ['@request_stack']
    tags:
      - { name: cache.context }

  # Complex cache contexts, that depend on the routing system.
  cache_context.route:
109
    class: Drupal\Core\Cache\Context\RouteCacheContext
110 111 112 113
    arguments: ['@current_route_match']
    tags:
      - { name: cache.context }
  cache_context.route.name:
114
    class: Drupal\Core\Cache\Context\RouteNameCacheContext
115 116 117 118
    arguments: ['@current_route_match']
    tags:
      - { name: cache.context }
  cache_context.route.menu_active_trails:
119
    class: Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext
120 121 122 123 124 125 126 127 128
    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:
129
    class: Drupal\Core\Cache\Context\UserCacheContext
130 131 132
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
133
  cache_context.user.permissions:
134
    class: Drupal\Core\Cache\Context\AccountPermissionsCacheContext
135 136 137
    arguments: ['@current_user', '@user_permissions_hash_generator']
    tags:
      - { name: cache.context}
138
  cache_context.user.roles:
139
    class: Drupal\Core\Cache\Context\UserRolesCacheContext
140
    arguments: ['@current_user']
141 142
    tags:
      - { name: cache.context}
143
  cache_context.user.is_super_user:
144
    class: Drupal\Core\Cache\Context\IsSuperUserCacheContext
145 146 147 148
    arguments: ['@current_user']
    tags:
      - { name: cache.context}
  cache_context.languages:
149
    class: Drupal\Core\Cache\Context\LanguagesCacheContext
150 151 152 153
    arguments: ['@language_manager']
    tags:
      - { name: cache.context}
  cache_context.theme:
154
    class: Drupal\Core\Cache\Context\ThemeCacheContext
155
    arguments: ['@theme.manager']
156 157
    tags:
      - { name: cache.context}
158
  cache_context.timezone:
159
    class: Drupal\Core\Cache\Context\TimeZoneCacheContext
160 161
    tags:
      - { name: cache.context}
162 163 164 165

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

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

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

908 909 910 911 912 913 914 915 916
# 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]
917 918
  request_format_route_filter:
    class: Drupal\Core\Routing\RequestFormatRouteFilter
919 920
    tags:
      - { name: route_filter }
921 922 923 924
  method_filter:
    class: Drupal\Core\Routing\MethodFilter
    tags:
      - { name: route_filter, priority: 1 }
925 926
  content_type_header_matcher:
    class: Drupal\Core\Routing\ContentTypeHeaderMatcher
927 928 929 930
    tags:
      - { name: route_filter }
  paramconverter_manager:
    class: Drupal\Core\ParamConverter\ParamConverterManager
931 932
    tags:
      - { name: service_collector, tag: paramconverter, call: addConverter }
933 934 935 936 937
  paramconverter_subscriber:
    class: Drupal\Core\EventSubscriber\ParamConverterSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@paramconverter_manager']
938 939 940 941
  paramconverter.entity:
    class: Drupal\Core\ParamConverter\EntityConverter
    tags:
      - { name: paramconverter }
942
    arguments: ['@entity.manager']
943 944 945 946
  paramconverter.entity_revision:
    class: Drupal\Core\ParamConverter\EntityRevisionParamConverter
    tags:
      - { name: paramconverter }
947
    arguments: ['@entity_type.manager', '@entity.repository']
948 949 950 951 952 953
  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']
954
    lazy: true
955 956 957 958 959
  route_subscriber.module:
    class: Drupal\Core\EventSubscriber\ModuleRouteSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@module_handler']
960 961
  resolver_manager.entity:
    class: Drupal\Core\Entity\EntityResolverManager
962
    arguments: ['@entity.manager', '@class_resolver']
963 964 965 966
  route_subscriber.entity:
    class: Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber
    tags:
      - { name: event_subscriber }
967
    arguments: ['@resolver_manager.entity']
968 969 970
  ajax_response.subscriber:
    class: Drupal\Core\EventSubscriber\AjaxResponseSubscriber
    arguments: ['@ajax_response.attachments_processor']