core.services.yml 16.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
services:
  cache_factory:
    class: Drupal\Core\Cache\CacheFactory
    arguments: ['@settings']
    calls:
      - [setContainer, ['@service_container']]
  cache.backend.database:
    class: Drupal\Core\Cache\DatabaseBackendFactory
    arguments: ['@database']
  cache.backend.memory:
    class: Drupal\Core\Cache\MemoryBackendFactory
  cache.bootstrap:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [bootstrap]
  cache.config:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [config]
  cache.cache:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [cache]
  cache.menu:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [menu]
  cache.page:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [page]
  cache.path:
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory_method: get
    factory_service: cache_factory
    arguments: [path]
  config.cachedstorage.storage:
    class: Drupal\Core\Config\FileStorage
    factory_class: Drupal\Core\Config\FileStorageFactory
    factory_method: getActive
  config.storage:
    class: Drupal\Core\Config\CachedStorage
    arguments: ['@config.cachedstorage.storage', '@cache.config']
  config.context.factory:
    class: Drupal\Core\Config\Context\ConfigContextFactory
    arguments: ['@event_dispatcher']
  config.context:
    class: Drupal\Core\Config\Context\ContextInterface
    tags:
      - { name: persist }
    factory_method: get
    factory_service: config.context.factory
  config.context.free:
    class: Drupal\Core\Config\Context\ContextInterface
    factory_method: get
    factory_service: config.context.factory
    arguments: [Drupal\Core\Config\Context\FreeConfigContext]
  config.factory:
    class: Drupal\Core\Config\ConfigFactory
    tags:
      - { name: persist }
    arguments: ['@config.storage', '@config.context']
  config.storage.staging:
    class: Drupal\Core\Config\FileStorage
    factory_class: Drupal\Core\Config\FileStorageFactory
    factory_method: getStaging
  config.storage.snapshot:
    class: Drupal\Core\Config\DatabaseStorage
    arguments: ['@database', config_snapshot]
  config.storage.schema:
    class: Drupal\Core\Config\Schema\SchemaStorage
89 90
  config.storage.installer:
    class: Drupal\Core\Config\InstallStorage
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
  config.typed:
    class: Drupal\Core\Config\TypedConfigManager
    arguments: ['@config.storage', '@config.storage.schema']
  database:
    class: Drupal\Core\Database\Connection
    factory_class: Drupal\Core\Database\Database
    factory_method: getConnection
    arguments: [default]
  keyvalue:
    class: Drupal\Core\KeyValueStore\KeyValueFactory
    arguments: ['@service_container']
  keyvalue.database:
    class: Drupal\Core\KeyValueStore\KeyValueDatabaseFactory
    arguments: ['@database']
  keyvalue.expirable:
    class: Drupal\Core\KeyValueStore\KeyValueExpirableFactory
    arguments: ['@service_container']
  keyvalue.expirable.database:
    class: Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
    tags:
      - { name: needs_destruction }
    arguments: ['@database']
  settings:
    class: Drupal\Component\Utility\Settings
    factory_class: Drupal\Component\Utility\Settings
    factory_method: getSingleton
  state:
    class: Drupal\Core\KeyValueStore\KeyValueStoreInterface
    factory_method: get
    factory_service: keyvalue
    arguments: [state]
  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 }
    arguments: [path_alias_whitelist, cache, '@keyvalue', '@database']
  path.alias_manager:
    class: Drupal\Core\Path\AliasManager
    arguments: ['@database', '@path.alias_whitelist', '@language_manager']
  http_client_simpletest_subscriber:
    class: Drupal\Core\Http\Plugin\SimpletestHttpRequestSubscriber
  http_default_client:
    class: Guzzle\Http\Client
    arguments: [null, { curl.CURLOPT_TIMEOUT: 30, curl.CURLOPT_MAXREDIRS: 3 }]
    calls:
      - [addSubscriber, ['@http_client_simpletest_subscriber']]
      - [setUserAgent, ['Drupal (+http://drupal.org/)']]
146 147 148 149 150
  container.namespaces:
    class: ArrayObject
    arguments: [ '%container.namespaces%' ]
    tags:
      - { name: persist }
151 152
  plugin.manager.entity:
    class: Drupal\Core\Entity\EntityManager
153
    arguments: ['@container.namespaces', '@service_container']
154 155
  plugin.manager.archiver:
    class: Drupal\Core\Archiver\ArchiverManager
156
    arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
157 158 159
  plugin.manager.action:
    class: Drupal\Core\Action\ActionManager
    arguments: ['@container.namespaces']
160 161
  request:
    class: Symfony\Component\HttpFoundation\Request
162 163 164 165 166
    # @TODO the synthetic setting must be uncommented whenever drupal_session_initialize()
    # is run after there is a request and the following two lines should be removed.
    factory_class: Symfony\Component\HttpFoundation\Request
    factory_method: createFromGlobals
    #synthetic: true
167 168 169 170
  event_dispatcher:
    class: Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher
    arguments: ['@service_container']
  controller_resolver:
171
    class: Drupal\Core\Controller\ControllerResolver
172 173 174 175 176 177
    arguments: ['@service_container']
  http_kernel:
    class: Drupal\Core\HttpKernel
    arguments: ['@event_dispatcher', '@service_container', '@controller_resolver']
  language_manager:
    class: Drupal\Core\Language\LanguageManager
178 179 180 181 182 183
  string_translator.custom_strings:
    class: Drupal\Core\StringTranslation\Translator\CustomStrings
    tags:
      - { name: string_translator, priority: 30 }
  string_translation:
    class: Drupal\Core\StringTranslation\TranslationManager
184 185 186 187 188 189 190 191 192 193 194
  database.slave:
    class: Drupal\Core\Database\Connection
    factory_class: Drupal\Core\Database\Database
    factory_method: getConnection
    arguments: [slave]
  typed_data:
    class: Drupal\Core\TypedData\TypedDataManager
    calls:
      - [setValidationConstraintManager, ['@validation.constraint']]
  validation.constraint:
    class: Drupal\Core\Validation\ConstraintManager
195
    arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
  lock:
    class: Drupal\Core\Lock\DatabaseLockBackend
  user.tempstore:
    class: Drupal\user\TempStoreFactory
    arguments: ['@database', '@lock']
  router.request_context:
    class: Symfony\Component\Routing\RequestContext
    calls:
      - [fromRequest, ['@request']]
  router.route_provider:
    class: Drupal\Core\Routing\RouteProvider
    arguments: ['@database']
  router.matcher.final_matcher:
    class: Drupal\Core\Routing\UrlMatcher
  router.matcher:
    class: Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher
    arguments: ['@router.route_provider']
    calls:
      - [setFinalMatcher, ['@router.matcher.final_matcher']]
215
  url_generator:
216
    class: Drupal\Core\Routing\UrlGenerator
217 218 219 220 221
    arguments: ['@router.route_provider', '@path_processor_manager', '@config.factory', '@settings']
    calls:
      - [setRequest, ['@?request']]
    tags:
      - { name: persist }
222 223
  router.dynamic:
    class: Symfony\Cmf\Component\Routing\DynamicRouter
224
    arguments: ['@router.request_context', '@router.matcher', '@url_generator']
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
  legacy_generator:
    class: Drupal\Core\Routing\NullGenerator
  legacy_url_matcher:
    class: Drupal\Core\LegacyUrlMatcher
  legacy_router:
    class: Symfony\Cmf\Component\Routing\DynamicRouter
    arguments: ['@router.request_context', '@legacy_url_matcher', '@legacy_generator']
  router:
    class: Symfony\Cmf\Component\Routing\ChainRouter
    calls:
      - [setContext, ['@router.request_context']]
      - [add, ['@router.dynamic']]
      - [add, ['@legacy_router']]
  entity.query:
    class: Drupal\Core\Entity\Query\QueryFactory
    arguments: ['@plugin.manager.entity']
    calls:
      - [setContainer, ['@service_container']]
  entity.query.config:
    class: Drupal\Core\Config\Entity\Query\QueryFactory
    arguments: ['@config.storage']
  router.dumper:
    class: Drupal\Core\Routing\MatcherDumper
    arguments: ['@database']
  router.builder:
    class: Drupal\Core\Routing\RouteBuilder
    arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler']
  path.alias_manager.cached:
    class: Drupal\Core\CacheDecorator\AliasManagerCacheDecorator
    arguments: ['@path.alias_manager', '@cache.path']
  path.crud:
    class: Drupal\Core\Path\Path
    arguments: ['@database', '@path.alias_manager']
# 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]
  mime_type_matcher:
    class: Drupal\Core\Routing\MimeTypeMatcher
    tags:
      - { name: route_filter }
  paramconverter_manager:
    class: Drupal\Core\ParamConverter\ParamConverterManager
    tags:
      - { name: route_enhancer }
  paramconverter.entity:
    class: Drupal\Core\ParamConverter\EntityConverter
    tags:
      - { name: paramconverter }
    arguments: ['@plugin.manager.entity']
280 281 282 283 284
  reverse_proxy_subscriber:
    class: Drupal\Core\EventSubscriber\ReverseProxySubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@settings']
285 286
  route_enhancer.content_controller:
    class: Drupal\Core\Routing\Enhancer\ContentControllerEnhancer
287 288 289
    arguments: ['@content_negotiation']
    tags:
      - { name: route_enhancer, priority: 30 }
290 291 292
  route_enhancer.ajax:
    class: Drupal\Core\Routing\Enhancer\AjaxEnhancer
    arguments: ['@content_negotiation']
293
    tags:
294 295
      - { name: route_enhancer, priority: 20 }
      - { name: legacy_route_enhancer, priority: 20 }
296 297
  route_enhancer.entity:
    class: Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
298 299 300
    arguments: ['@content_negotiation']
    tags:
      - { name: route_enhancer, priority: 15 }
301 302
  route_enhancer.form:
    class: Drupal\Core\Routing\Enhancer\FormEnhancer
303
    arguments: ['@content_negotiation']
304 305
    tags:
      - { name: route_enhancer, priority: 10 }
306 307 308 309 310 311
  controller.page:
    class: Drupal\Core\Controller\HtmlPageController
    arguments: ['@http_kernel']
  controller.dialog:
    class: Drupal\Core\Controller\DialogController
    arguments: ['@http_kernel']
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
  router_listener:
    class: Symfony\Component\HttpKernel\EventListener\RouterListener
    tags:
      - { name: event_subscriber }
    arguments: ['@router']
  content_negotiation:
    class: Drupal\Core\ContentNegotiation
  view_subscriber:
    class: Drupal\Core\EventSubscriber\ViewSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@content_negotiation']
  legacy_access_subscriber:
    class: Drupal\Core\EventSubscriber\LegacyAccessSubscriber
    tags:
      - { name: event_subscriber }
  access_manager:
    class: Drupal\Core\Access\AccessManager
    calls:
      - [setContainer, ['@service_container']]
  access_subscriber:
    class: Drupal\Core\EventSubscriber\AccessSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@access_manager']
  access_check.default:
    class: Drupal\Core\Access\DefaultAccessCheck
    tags:
      - { name: access_check }
341 342 343 344
  access_check.entity:
    class: Drupal\Core\Entity\EntityAccessCheck
    tags:
      - { name: access_check }
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
  maintenance_mode_subscriber:
    class: Drupal\Core\EventSubscriber\MaintenanceModeSubscriber
    tags:
      - { name: event_subscriber }
  path_subscriber:
    class: Drupal\Core\EventSubscriber\PathSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@path.alias_manager.cached', '@path_processor_manager']
  legacy_request_subscriber:
    class: Drupal\Core\EventSubscriber\LegacyRequestSubscriber
    tags:
      - { name: event_subscriber }
  legacy_controller_subscriber:
    class: Drupal\Core\EventSubscriber\LegacyControllerSubscriber
    tags:
      - { name: event_subscriber }
  finish_response_subscriber:
    class: Drupal\Core\EventSubscriber\FinishResponseSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@language_manager']
    scope: request
368 369 370 371 372 373
  redirect_response_subscriber:
    class: Drupal\Core\EventSubscriber\RedirectResponseSubscriber
    arguments: ['@url_generator']
    tags:
      - { name: event_subscriber }
    scope: request
374 375 376 377 378 379 380 381 382
  request_close_subscriber:
    class: Drupal\Core\EventSubscriber\RequestCloseSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@module_handler']
  config_global_override_subscriber:
    class: Drupal\Core\EventSubscriber\ConfigGlobalOverrideSubscriber
    tags:
      - { name: event_subscriber }
383 384 385 386 387 388 389 390 391
  config_import_subscriber:
    class: Drupal\Core\EventSubscriber\ConfigImportSubscriber
    tags:
      - { name: event_subscriber }
  config_snapshot_subscriber:
    class: Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber
    tags:
      - { name: event_subscriber }
    arguments: ['@config.storage', '@config.storage.snapshot']
392 393 394 395
  language_request_subscriber:
    class: Drupal\Core\EventSubscriber\LanguageRequestSubscriber
    tags:
      - { name: event_subscriber }
396
    arguments: ['@language_manager', '@string_translation']
397
  exception_controller:
398
    class: Drupal\Core\Controller\ExceptionController
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
    arguments: ['@content_negotiation']
    calls:
      - [setContainer, ['@service_container']]
  exception_listener:
    class: Symfony\Component\HttpKernel\EventListener\ExceptionListener
    tags:
      - { name: event_subscriber }
    arguments: [['@exception_controller', execute]]
  path_processor_manager:
    class: Drupal\Core\PathProcessor\PathProcessorManager
  path_processor_decode:
    class: Drupal\Core\PathProcessor\PathProcessorDecode
    tags:
      - { name: path_processor_inbound, priority: 1000 }
  path_processor_front:
    class: Drupal\Core\PathProcessor\PathProcessorFront
    tags:
      - { name: path_processor_inbound, priority: 200 }
417
      - { name: path_processor_outbound, priority: 200 }
418 419 420 421 422
    arguments: ['@config.factory']
  path_processor_alias:
    class: Drupal\Core\PathProcessor\PathProcessorAlias
    tags:
      - { name: path_processor_inbound, priority: 100 }
423
      - { name: path_processor_outbound, priority: 300 }
424 425 426 427 428
    arguments: ['@path.alias_manager']
  transliteration:
    class: Drupal\Core\Transliteration\PHPTransliteration
  flood:
    class: Drupal\Core\Flood\DatabaseBackend
429
    arguments: ['@database', '@request']
430 431
  plugin.manager.condition:
    class: Drupal\Core\Condition\ConditionManager
432
    arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler']
433 434 435 436 437 438 439 440 441 442 443 444
  kernel_destruct_subscriber:
    class: Drupal\Core\EventSubscriber\KernelDestructionSubscriber
    tags:
      - { name: event_subscriber }
    calls:
      - [setContainer, ['@service_container']]
  ajax.subscriber:
    class: Drupal\Core\Ajax\AjaxSubscriber
    tags:
      - { name: event_subscriber }
  image.toolkit.manager:
    class: Drupal\system\Plugin\ImageToolkitManager
445
    arguments: ['@container.namespaces', '@cache.cache', '@language_manager']
446 447 448 449
  image.toolkit:
    class: Drupal\system\Plugin\ImageToolkitInterface
    factory_method: getDefaultToolkit
    factory_service: image.toolkit.manager
450 451
  breadcrumb:
    class: Drupal\Core\Breadcrumb\BreadcrumbManager
452 453 454
  token:
    class: Drupal\Core\Utility\Token
    arguments: ['@module_handler']
455 456 457
  batch.storage:
    class: Drupal\Core\Utility\BatchStorage
    arguments: ['@database']
458 459 460 461
  slave_database_ignore__subscriber:
    class: Drupal\Core\EventSubscriber\SlaveDatabaseIgnoreSubscriber
    tags:
      - {name: event_subscriber}
462 463 464
  country_manager:
    class: Drupal\Core\Locale\CountryManager
    arguments: ['@module_handler']
465 466 467
  date:
    class: Drupal\Core\Datetime\Date
    arguments: ['@config.factory', '@language_manager']