core.services.yml 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660
  1. parameters:
  2. session.storage.options:
  3. gc_probability: 1
  4. gc_divisor: 100
  5. gc_maxlifetime: 200000
  6. cookie_lifetime: 2000000
  7. twig.config:
  8. debug: false
  9. auto_reload: null
  10. cache: true
  11. renderer.config:
  12. required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
  13. auto_placeholder_conditions:
  14. max-age: 0
  15. contexts: ['session', 'user']
  16. tags: []
  17. factory.keyvalue:
  18. default: keyvalue.database
  19. http.response.debug_cacheability_headers: false
  20. factory.keyvalue.expirable:
  21. default: keyvalue.expirable.database
  22. filter_protocols:
  23. - http
  24. - https
  25. - ftp
  26. - news
  27. - nntp
  28. - tel
  29. - telnet
  30. - mailto
  31. - irc
  32. - ssh
  33. - sftp
  34. - webcal
  35. - rtsp
  36. cors.config:
  37. enabled: false
  38. allowedHeaders: []
  39. allowedMethods: []
  40. allowedOrigins: ['*']
  41. exposedHeaders: false
  42. maxAge: false
  43. supportsCredentials: false
  44. services:
  45. # Simple cache contexts, directly derived from the request context.
  46. cache_context.ip:
  47. class: Drupal\Core\Cache\Context\IpCacheContext
  48. arguments: ['@request_stack']
  49. tags:
  50. - { name: cache.context }
  51. cache_context.headers:
  52. class: Drupal\Core\Cache\Context\HeadersCacheContext
  53. arguments: ['@request_stack']
  54. tags:
  55. - { name: cache.context }
  56. cache_context.cookies:
  57. class: Drupal\Core\Cache\Context\CookiesCacheContext
  58. arguments: ['@request_stack']
  59. tags:
  60. - { name: cache.context }
  61. cache_context.session:
  62. class: Drupal\Core\Cache\Context\SessionCacheContext
  63. arguments: ['@request_stack']
  64. tags:
  65. - { name: cache.context}
  66. cache_context.session.exists:
  67. class: Drupal\Core\Cache\Context\SessionExistsCacheContext
  68. arguments: ['@session_configuration', '@request_stack']
  69. tags:
  70. - { name: cache.context}
  71. cache_context.request_format:
  72. class: Drupal\Core\Cache\Context\RequestFormatCacheContext
  73. arguments: ['@request_stack']
  74. tags:
  75. - { 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. tags:
  85. - { name: cache.context }
  86. cache_context.url.path:
  87. class: Drupal\Core\Cache\Context\PathCacheContext
  88. arguments: ['@request_stack']
  89. tags:
  90. - { name: cache.context }
  91. cache_context.url.path.parent:
  92. class: Drupal\Core\Cache\Context\PathParentCacheContext
  93. arguments: ['@request_stack']
  94. tags:
  95. - { name: cache.context }
  96. cache_context.url.path.is_front:
  97. class: Drupal\Core\Cache\Context\IsFrontPathCacheContext
  98. arguments: ['@path.matcher']
  99. tags:
  100. - { name: cache.context }
  101. cache_context.url.query_args:
  102. class: Drupal\Core\Cache\Context\QueryArgsCacheContext
  103. arguments: ['@request_stack']
  104. tags:
  105. - { name: cache.context }
  106. cache_context.url.query_args.pagers:
  107. class: Drupal\Core\Cache\Context\PagersCacheContext
  108. arguments: ['@request_stack']
  109. tags:
  110. - { name: cache.context }
  111. # Complex cache contexts, that depend on the routing system.
  112. cache_context.route:
  113. class: Drupal\Core\Cache\Context\RouteCacheContext
  114. arguments: ['@current_route_match']
  115. tags:
  116. - { name: cache.context }
  117. cache_context.route.name:
  118. class: Drupal\Core\Cache\Context\RouteNameCacheContext
  119. arguments: ['@current_route_match']
  120. tags:
  121. - { name: cache.context }
  122. cache_context.route.menu_active_trails:
  123. class: Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext
  124. calls:
  125. - [setContainer, ['@service_container']]
  126. tags:
  127. - { name: cache.context }
  128. # Complex cache contexts, that may be calculated from a combination of
  129. # multiple aspects of the request context plus additional logic. Hence they
  130. # are their own roots.
  131. cache_context.user:
  132. class: Drupal\Core\Cache\Context\UserCacheContext
  133. arguments: ['@current_user']
  134. tags:
  135. - { name: cache.context}
  136. cache_context.user.permissions:
  137. class: Drupal\Core\Cache\Context\AccountPermissionsCacheContext
  138. arguments: ['@current_user', '@user_permissions_hash_generator']
  139. tags:
  140. - { name: cache.context}
  141. cache_context.user.roles:
  142. class: Drupal\Core\Cache\Context\UserRolesCacheContext
  143. arguments: ['@current_user']
  144. tags:
  145. - { name: cache.context}
  146. cache_context.user.is_super_user:
  147. class: Drupal\Core\Cache\Context\IsSuperUserCacheContext
  148. arguments: ['@current_user']
  149. tags:
  150. - { name: cache.context}
  151. cache_context.languages:
  152. class: Drupal\Core\Cache\Context\LanguagesCacheContext
  153. arguments: ['@language_manager']
  154. tags:
  155. - { name: cache.context}
  156. cache_context.theme:
  157. class: Drupal\Core\Cache\Context\ThemeCacheContext
  158. arguments: ['@theme.manager']
  159. tags:
  160. - { name: cache.context}
  161. cache_context.timezone:
  162. class: Drupal\Core\Cache\Context\TimeZoneCacheContext
  163. tags:
  164. - { name: cache.context}
  165. cache_factory:
  166. class: Drupal\Core\Cache\CacheFactory
  167. arguments: ['@settings', '%cache_default_bin_backends%']
  168. calls:
  169. - [setContainer, ['@service_container']]
  170. cache_contexts_manager:
  171. class: Drupal\Core\Cache\Context\CacheContextsManager
  172. arguments: ['@service_container', '%cache_contexts%' ]
  173. cache_tags.invalidator:
  174. parent: container.trait
  175. class: Drupal\Core\Cache\CacheTagsInvalidator
  176. calls:
  177. - [setContainer, ['@service_container']]
  178. tags:
  179. - { name: service_collector, call: addInvalidator, tag: cache_tags_invalidator }
  180. cache_tags.invalidator.checksum:
  181. class: Drupal\Core\Cache\DatabaseCacheTagsChecksum
  182. arguments: ['@database']
  183. tags:
  184. - { name: cache_tags_invalidator}
  185. cache.backend.chainedfast:
  186. class: Drupal\Core\Cache\ChainedFastBackendFactory
  187. arguments: ['@settings']
  188. calls:
  189. - [setContainer, ['@service_container']]
  190. cache.backend.database:
  191. class: Drupal\Core\Cache\DatabaseBackendFactory
  192. arguments: ['@database', '@cache_tags.invalidator.checksum']
  193. cache.backend.apcu:
  194. class: Drupal\Core\Cache\ApcuBackendFactory
  195. arguments: ['@app.root', '@site.path', '@cache_tags.invalidator.checksum']
  196. cache.backend.php:
  197. class: Drupal\Core\Cache\PhpBackendFactory
  198. arguments: ['@cache_tags.invalidator.checksum']
  199. cache.backend.memory:
  200. class: Drupal\Core\Cache\MemoryBackendFactory
  201. # A special cache bin that does not persist beyond the length of the request.
  202. cache.static:
  203. class: Drupal\Core\Cache\CacheBackendInterface
  204. tags:
  205. - { name: cache.bin, default_backend: cache.backend.memory }
  206. factory: cache_factory:get
  207. arguments: [static]
  208. cache.bootstrap:
  209. class: Drupal\Core\Cache\CacheBackendInterface
  210. tags:
  211. - { name: cache.bin, default_backend: cache.backend.chainedfast }
  212. factory: cache_factory:get
  213. arguments: [bootstrap]
  214. cache.config:
  215. class: Drupal\Core\Cache\CacheBackendInterface
  216. tags:
  217. - { name: cache.bin, default_backend: cache.backend.chainedfast }
  218. factory: cache_factory:get
  219. arguments: [config]
  220. cache.default:
  221. class: Drupal\Core\Cache\CacheBackendInterface
  222. tags:
  223. - { name: cache.bin }
  224. factory: cache_factory:get
  225. arguments: [default]
  226. cache.entity:
  227. class: Drupal\Core\Cache\CacheBackendInterface
  228. tags:
  229. - { name: cache.bin }
  230. factory: cache_factory:get
  231. arguments: [entity]
  232. cache.menu:
  233. class: Drupal\Core\Cache\CacheBackendInterface
  234. tags:
  235. - { name: cache.bin }
  236. factory: cache_factory:get
  237. arguments: [menu]
  238. cache.render:
  239. class: Drupal\Core\Cache\CacheBackendInterface
  240. tags:
  241. - { name: cache.bin }
  242. factory: cache_factory:get
  243. arguments: [render]
  244. cache.data:
  245. class: Drupal\Core\Cache\CacheBackendInterface
  246. tags:
  247. - { name: cache.bin }
  248. factory: cache_factory:get
  249. arguments: [data]
  250. cache.discovery:
  251. class: Drupal\Core\Cache\CacheBackendInterface
  252. tags:
  253. - { name: cache.bin, default_backend: cache.backend.chainedfast }
  254. factory: cache_factory:get
  255. arguments: [discovery]
  256. cache_router_rebuild_subscriber:
  257. class: Drupal\Core\EventSubscriber\CacheRouterRebuildSubscriber
  258. tags:
  259. - { name: event_subscriber }
  260. page_cache_request_policy:
  261. class: Drupal\Core\PageCache\DefaultRequestPolicy
  262. arguments: ['@session_configuration']
  263. tags:
  264. - { name: service_collector, tag: page_cache_request_policy, call: addPolicy}
  265. page_cache_response_policy:
  266. class: Drupal\Core\PageCache\ChainResponsePolicy
  267. tags:
  268. - { name: service_collector, tag: page_cache_response_policy, call: addPolicy}
  269. lazy: true
  270. page_cache_kill_switch:
  271. class: Drupal\Core\PageCache\ResponsePolicy\KillSwitch
  272. tags:
  273. - { name: page_cache_response_policy }
  274. - { name: dynamic_page_cache_response_policy }
  275. page_cache_no_cache_routes:
  276. class: Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes
  277. arguments: ['@current_route_match']
  278. public: false
  279. tags:
  280. - { name: page_cache_response_policy }
  281. - { name: dynamic_page_cache_response_policy }
  282. page_cache_no_server_error:
  283. class: Drupal\Core\PageCache\ResponsePolicy\NoServerError
  284. public: false
  285. tags:
  286. - { name: page_cache_response_policy }
  287. - { name: dynamic_page_cache_response_policy }
  288. config.manager:
  289. class: Drupal\Core\Config\ConfigManager
  290. arguments: ['@entity.manager', '@config.factory', '@config.typed', '@string_translation', '@config.storage', '@event_dispatcher']
  291. config.factory:
  292. class: Drupal\Core\Config\ConfigFactory
  293. tags:
  294. - { name: event_subscriber }
  295. - { name: service_collector, tag: 'config.factory.override', call: addOverride }
  296. arguments: ['@config.storage', '@event_dispatcher', '@config.typed']
  297. config.importer_subscriber:
  298. class: Drupal\Core\Config\Importer\FinalMissingContentSubscriber
  299. tags:
  300. - { name: event_subscriber }
  301. config.installer:
  302. class: Drupal\Core\Config\ConfigInstaller
  303. arguments: ['@config.factory', '@config.storage', '@config.typed', '@config.manager', '@event_dispatcher', '%install_profile%']
  304. lazy: true
  305. config.storage:
  306. class: Drupal\Core\Config\CachedStorage
  307. arguments: ['@config.storage.active', '@cache.config']
  308. config.storage.active:
  309. class: Drupal\Core\Config\DatabaseStorage
  310. arguments: ['@database', 'config']
  311. public: false
  312. tags:
  313. - { name: backend_overridable }
  314. # @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Use
  315. # config.storage.sync instead.
  316. # @see https://www.drupal.org/node/2574957
  317. config.storage.staging:
  318. class: Drupal\Core\Config\FileStorage
  319. factory: Drupal\Core\Config\FileStorageFactory::getSync
  320. config.storage.sync:
  321. alias: config.storage.staging
  322. config.storage.snapshot:
  323. class: Drupal\Core\Config\DatabaseStorage
  324. arguments: ['@database', config_snapshot]
  325. tags:
  326. - { name: backend_overridable }
  327. config.storage.schema:
  328. class: Drupal\Core\Config\ExtensionInstallStorage
  329. arguments: ['@config.storage', 'config/schema', '', true, '%install_profile%']
  330. config.typed:
  331. class: Drupal\Core\Config\TypedConfigManager
  332. arguments: ['@config.storage', '@config.storage.schema', '@cache.discovery', '@module_handler']
  333. tags:
  334. - { name: plugin_manager_cache_clear }
  335. context.handler:
  336. class: Drupal\Core\Plugin\Context\ContextHandler
  337. arguments: ['@typed_data_manager']
  338. context.repository:
  339. class: Drupal\Core\Plugin\Context\LazyContextRepository
  340. arguments: ['@service_container']
  341. cron:
  342. class: Drupal\Core\Cron
  343. arguments: ['@module_handler', '@lock', '@queue', '@state', '@account_switcher', '@logger.channel.cron', '@plugin.manager.queue_worker']
  344. lazy: true
  345. diff.formatter:
  346. class: Drupal\Core\Diff\DiffFormatter
  347. arguments: ['@config.factory']
  348. database:
  349. class: Drupal\Core\Database\Connection
  350. factory: Drupal\Core\Database\Database::getConnection
  351. arguments: [default]
  352. datetime.time:
  353. class: Drupal\Component\Datetime\Time
  354. arguments: ['@request_stack']
  355. file_system:
  356. class: Drupal\Core\File\FileSystem
  357. arguments: ['@stream_wrapper_manager', '@settings', '@logger.channel.file']
  358. form_builder:
  359. class: Drupal\Core\Form\FormBuilder
  360. arguments: ['@form_validator', '@form_submitter', '@form_cache', '@module_handler', '@event_dispatcher', '@request_stack', '@class_resolver', '@element_info', '@theme.manager', '@?csrf_token']
  361. form_validator:
  362. class: Drupal\Core\Form\FormValidator
  363. arguments: ['@request_stack', '@string_translation', '@csrf_token', '@logger.channel.form', '@form_error_handler']
  364. form_submitter:
  365. class: Drupal\Core\Form\FormSubmitter
  366. arguments: ['@request_stack', '@url_generator']
  367. form_error_handler:
  368. class: Drupal\Core\Form\FormErrorHandler
  369. form_cache:
  370. class: Drupal\Core\Form\FormCache
  371. arguments: ['@app.root', '@keyvalue.expirable', '@module_handler', '@current_user', '@csrf_token', '@logger.channel.form', '@request_stack', '@page_cache_request_policy']
  372. public: false # Private to form_builder
  373. keyvalue:
  374. class: Drupal\Core\KeyValueStore\KeyValueFactory
  375. arguments: ['@service_container', '%factory.keyvalue%']
  376. keyvalue.database:
  377. class: Drupal\Core\KeyValueStore\KeyValueDatabaseFactory
  378. arguments: ['@serialization.phpserialize', '@database']
  379. keyvalue.expirable:
  380. class: Drupal\Core\KeyValueStore\KeyValueExpirableFactory
  381. arguments: ['@service_container', '%factory.keyvalue.expirable%']
  382. keyvalue.expirable.database:
  383. class: Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
  384. arguments: ['@serialization.phpserialize', '@database']
  385. logger.factory:
  386. class: Drupal\Core\Logger\LoggerChannelFactory
  387. parent: container.trait
  388. tags:
  389. - { name: service_collector, tag: logger, call: addLogger }
  390. logger.channel_base:
  391. abstract: true
  392. class: Drupal\Core\Logger\LoggerChannel
  393. factory: logger.factory:get
  394. logger.channel.default:
  395. parent: logger.channel_base
  396. arguments: ['system']
  397. logger.channel.php:
  398. parent: logger.channel_base
  399. arguments: ['php']
  400. logger.channel.image:
  401. parent: logger.channel_base
  402. arguments: ['image']
  403. logger.channel.cron:
  404. parent: logger.channel_base
  405. arguments: ['cron']
  406. logger.channel.file:
  407. class: Drupal\Core\Logger\LoggerChannel
  408. factory: logger.factory:get
  409. arguments: ['file']
  410. logger.channel.form:
  411. parent: logger.channel_base
  412. arguments: ['form']
  413. logger.log_message_parser:
  414. class: Drupal\Core\Logger\LogMessageParser
  415. serialization.json:
  416. class: Drupal\Component\Serialization\Json
  417. serialization.phpserialize:
  418. class: Drupal\Component\Serialization\PhpSerialize
  419. serialization.yaml:
  420. class: Drupal\Component\Serialization\Yaml
  421. settings:
  422. class: Drupal\Core\Site\Settings
  423. factory: Drupal\Core\Site\Settings::getInstance
  424. state:
  425. class: Drupal\Core\State\State
  426. arguments: ['@keyvalue', '@cache.bootstrap', '@lock']
  427. tags:
  428. - { name: needs_destruction }
  429. queue:
  430. class: Drupal\Core\Queue\QueueFactory
  431. arguments: ['@settings']
  432. calls:
  433. - [setContainer, ['@service_container']]
  434. queue.database:
  435. class: Drupal\Core\Queue\QueueDatabaseFactory
  436. arguments: ['@database']
  437. path.alias_whitelist:
  438. class: Drupal\Core\Path\AliasWhitelist
  439. tags:
  440. - { name: needs_destruction }
  441. arguments: [path_alias_whitelist, '@cache.bootstrap', '@lock', '@state', '@path.alias_storage']
  442. path.alias_manager:
  443. class: Drupal\Core\Path\AliasManager
  444. arguments: ['@path.alias_storage', '@path.alias_whitelist', '@language_manager', '@cache.data']
  445. path.current:
  446. class: Drupal\Core\Path\CurrentPathStack
  447. arguments: ['@request_stack']
  448. http_handler_stack:
  449. class: GuzzleHttp\HandlerStack
  450. public: false
  451. factory: GuzzleHttp\HandlerStack::create
  452. configurator: ['@http_handler_stack_configurator', configure]
  453. http_handler_stack_configurator:
  454. class: Drupal\Core\Http\HandlerStackConfigurator
  455. public: false
  456. arguments: ['@service_container']
  457. http_client:
  458. class: GuzzleHttp\Client
  459. factory: http_client_factory:fromOptions
  460. http_client_factory:
  461. class: Drupal\Core\Http\ClientFactory
  462. arguments: ['@http_handler_stack']
  463. plugin.manager.link_relation_type:
  464. class: \Drupal\Core\Http\LinkRelationTypeManager
  465. arguments: ['@app.root', '@module_handler', '@cache.discovery']
  466. theme.negotiator:
  467. class: Drupal\Core\Theme\ThemeNegotiator
  468. arguments: ['@access_check.theme']
  469. tags:
  470. - { name: service_collector, tag: theme_negotiator, call: addNegotiator }
  471. theme.negotiator.default:
  472. class: Drupal\Core\Theme\DefaultNegotiator
  473. arguments: ['@config.factory']
  474. tags:
  475. - { name: theme_negotiator, priority: -100 }
  476. theme.negotiator.ajax_base_page:
  477. class: Drupal\Core\Theme\AjaxBasePageNegotiator
  478. arguments: ['@csrf_token', '@config.factory', '@request_stack']
  479. tags:
  480. - { name: theme_negotiator, priority: 1000 }
  481. container.namespaces:
  482. class: ArrayObject
  483. arguments: [ '%container.namespaces%' ]
  484. container.trait:
  485. abstract: true
  486. calls:
  487. - [setContainer, ['@service_container']]
  488. default_plugin_manager:
  489. abstract: true
  490. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  491. module_handler:
  492. class: Drupal\Core\Extension\ModuleHandler
  493. arguments: ['@app.root', '%container.modules%', '@cache.bootstrap']
  494. module_installer:
  495. class: Drupal\Core\Extension\ModuleInstaller
  496. tags:
  497. - { name: service_collector, tag: 'module_install.uninstall_validator', call: addUninstallValidator }
  498. arguments: ['@app.root', '@module_handler', '@kernel', '@router.builder']
  499. lazy: true
  500. content_uninstall_validator:
  501. class: Drupal\Core\Entity\ContentUninstallValidator
  502. tags:
  503. - { name: module_install.uninstall_validator }
  504. arguments: ['@entity.manager', '@string_translation']
  505. lazy: true
  506. field_uninstall_validator:
  507. class: Drupal\Core\Field\FieldModuleUninstallValidator
  508. tags:
  509. - { name: module_install.uninstall_validator }
  510. arguments: ['@entity.manager', '@string_translation']
  511. lazy: true
  512. required_module_uninstall_validator:
  513. class: Drupal\Core\Extension\RequiredModuleUninstallValidator
  514. tags:
  515. - { name: module_install.uninstall_validator }
  516. arguments: ['@string_translation']
  517. lazy: true
  518. theme_handler:
  519. class: Drupal\Core\Extension\ThemeHandler
  520. arguments: ['@app.root', '@config.factory', '@module_handler', '@state', '@info_parser']
  521. theme_installer:
  522. class: Drupal\Core\Extension\ThemeInstaller
  523. arguments: ['@theme_handler', '@config.factory', '@config.installer', '@module_handler', '@config.manager', '@asset.css.collection_optimizer', '@router.builder', '@logger.channel.default', '@state']
  524. # @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Use the other
  525. # entity* services instead.
  526. entity.manager:
  527. # We cannot set the deprecated property here because many test cases still
  528. # rely on this service and they would fail with deprecation warnings.
  529. class: Drupal\Core\Entity\EntityManager
  530. parent: container.trait
  531. # @todo Remove this tag in https://www.drupal.org/node/2549143.
  532. tags:
  533. - { name: plugin_manager_cache_clear }
  534. entity_type.manager:
  535. class: Drupal\Core\Entity\EntityTypeManager
  536. arguments: ['@container.namespaces', '@module_handler', '@cache.discovery', '@string_translation', '@class_resolver']
  537. parent: container.trait
  538. tags:
  539. - { name: plugin_manager_cache_clear }
  540. entity_type.repository:
  541. class: Drupal\Core\Entity\EntityTypeRepository
  542. arguments: ['@entity_type.manager']
  543. entity_type.bundle.info:
  544. class: Drupal\Core\Entity\EntityTypeBundleInfo
  545. arguments: ['@entity_type.manager', '@language_manager', '@module_handler', '@typed_data_manager', '@cache.discovery']
  546. entity.repository:
  547. class: Drupal\Core\Entity\EntityRepository
  548. arguments: ['@entity_type.manager', '@language_manager']
  549. entity_display.repository:
  550. class: Drupal\Core\Entity\EntityDisplayRepository
  551. arguments: ['@entity_type.manager', '@module_handler', '@cache.discovery', '@language_manager']
  552. entity_field.manager:
  553. class: Drupal\Core\Entity\EntityFieldManager
  554. arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@entity_display.repository', '@typed_data_manager', '@language_manager', '@keyvalue', '@module_handler', '@cache.discovery']
  555. entity_type.listener:
  556. class: Drupal\Core\Entity\EntityTypeListener
  557. arguments: ['@entity_type.manager', '@entity_field.manager', '@event_dispatcher', '@entity.last_installed_schema.repository']
  558. entity_bundle.listener:
  559. class: Drupal\Core\Entity\EntityBundleListener
  560. arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@entity_field.manager', '@module_handler']
  561. entity_route_subscriber:
  562. class: Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber
  563. arguments: ['@entity.manager']
  564. tags:
  565. - { name: event_subscriber }
  566. entity.definition_update_manager:
  567. class: Drupal\Core\Entity\EntityDefinitionUpdateManager
  568. arguments: ['@entity.manager']
  569. entity.last_installed_schema.repository:
  570. class: Drupal\Core\Entity\EntityLastInstalledSchemaRepository
  571. arguments: ['@keyvalue']
  572. field_storage_definition.listener:
  573. class: Drupal\Core\Field\FieldStorageDefinitionListener
  574. arguments: ['@entity_type.manager', '@event_dispatcher', '@entity.last_installed_schema.repository', '@entity_field.manager']
  575. field_definition.listener:
  576. class: Drupal\Core\Field\FieldDefinitionListener
  577. arguments: ['@entity_type.manager', '@entity_field.manager', '@keyvalue', '@cache.discovery']
  578. entity.form_builder:
  579. class: Drupal\Core\Entity\EntityFormBuilder
  580. arguments: ['@entity.manager', '@form_builder']
  581. entity.bundle_config_import_validator:
  582. class: Drupal\Core\Entity\Event\BundleConfigImportValidate
  583. arguments: ['@config.manager', '@entity.manager']
  584. tags:
  585. - { name: event_subscriber }
  586. entity.autocomplete_matcher:
  587. class: Drupal\Core\Entity\EntityAutocompleteMatcher
  588. arguments: ['@plugin.manager.entity_reference_selection']
  589. plugin_form.factory:
  590. class: Drupal\Core\Plugin\PluginFormFactory
  591. arguments: ['@class_resolver']
  592. plugin.manager.entity_reference_selection:
  593. class: Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager
  594. parent: default_plugin_manager
  595. plugin.manager.block:
  596. class: Drupal\Core\Block\BlockManager
  597. parent: default_plugin_manager
  598. plugin.manager.field.field_type:
  599. class: Drupal\Core\Field\FieldTypePluginManager
  600. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@typed_data_manager']
  601. plugin.manager.field.widget:
  602. class: Drupal\Core\Field\WidgetPluginManager
  603. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@plugin.manager.field.field_type']
  604. plugin.manager.field.formatter:
  605. class: Drupal\Core\Field\FormatterPluginManager
  606. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@plugin.manager.field.field_type']
  607. plugin.manager.archiver:
  608. class: Drupal\Core\Archiver\ArchiverManager
  609. parent: default_plugin_manager
  610. plugin.manager.action:
  611. class: Drupal\Core\Action\ActionManager
  612. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  613. plugin.manager.menu.link:
  614. class: Drupal\Core\Menu\MenuLinkManager
  615. arguments: ['@menu.tree_storage', '@menu_link.static.overrides', '@module_handler']
  616. menu.link_tree:
  617. class: Drupal\Core\Menu\MenuLinkTree
  618. arguments: ['@menu.tree_storage', '@plugin.manager.menu.link', '@router.route_provider', '@menu.active_trail', '@controller_resolver']
  619. menu.default_tree_manipulators:
  620. class: Drupal\Core\Menu\DefaultMenuLinkTreeManipulators
  621. arguments: ['@access_manager', '@current_user', '@entity_type.manager']
  622. menu.active_trail:
  623. class: Drupal\Core\Menu\MenuActiveTrail
  624. arguments: ['@plugin.manager.menu.link', '@current_route_match', '@cache.menu', '@lock']
  625. tags:
  626. - { name: needs_destruction }
  627. menu.parent_form_selector:
  628. class: Drupal\Core\Menu\MenuParentFormSelector
  629. arguments: ['@menu.link_tree', '@entity.manager', '@string_translation']
  630. plugin.manager.menu.local_action:
  631. class: Drupal\Core\Menu\LocalActionManager
  632. arguments: ['@controller_resolver', '@request_stack', '@current_route_match', '@router.route_provider', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user']
  633. plugin.manager.menu.local_task:
  634. class: Drupal\Core\Menu\LocalTaskManager
  635. arguments: ['@controller_resolver', '@request_stack', '@current_route_match', '@router.route_provider', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user']
  636. plugin.manager.menu.contextual_link:
  637. class: Drupal\Core\Menu\ContextualLinkManager
  638. arguments: ['@controller_resolver', '@module_handler', '@cache.discovery', '@language_manager', '@access_manager', '@current_user', '@request_stack']
  639. plugin.manager.display_variant:
  640. class: Drupal\Core\Display\VariantManager
  641. parent: default_plugin_manager
  642. plugin.manager.queue_worker:
  643. class: Drupal\Core\Queue\QueueWorkerManager
  644. parent: default_plugin_manager
  645. plugin.cache_clearer:
  646. class: Drupal\Core\Plugin\CachedDiscoveryClearer
  647. lazy: true
  648. paramconverter.menu_link:
  649. class: Drupal\Core\ParamConverter\MenuLinkPluginConverter
  650. tags:
  651. - { name: paramconverter }
  652. arguments: ['@plugin.manager.menu.link']
  653. lazy: true
  654. menu.tree_storage:
  655. class: Drupal\Core\Menu\MenuTreeStorage
  656. arguments: ['@database', '@cache.menu', '@cache_tags.invalidator', 'menu_tree']
  657. public: false # Private to plugin.manager.menu.link and menu.link_tree
  658. tags:
  659. - { name: backend_overridable }
  660. menu_link.static.overrides:
  661. class: Drupal\Core\Menu\StaticMenuLinkOverrides
  662. arguments: ['@config.factory']
  663. request_stack:
  664. class: Symfony\Component\HttpFoundation\RequestStack
  665. tags:
  666. - { name: persist }
  667. current_route_match:
  668. class: Drupal\Core\Routing\CurrentRouteMatch
  669. arguments: ['@request_stack']
  670. event_dispatcher:
  671. class: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
  672. arguments: ['@service_container']
  673. app.root:
  674. class: SplString
  675. factory: app.root.factory:get
  676. tags:
  677. - { name: parameter_service }
  678. app.root.factory:
  679. class: Drupal\Core\AppRootFactory
  680. arguments: ['@kernel']
  681. public: false
  682. site.path:
  683. class: SplString
  684. factory: site.path.factory:get
  685. tags:
  686. - { name: parameter_service }
  687. site.path.factory:
  688. class: Drupal\Core\SitePathFactory
  689. arguments: ['@kernel']
  690. public: false
  691. controller_resolver:
  692. class: Drupal\Core\Controller\ControllerResolver
  693. arguments: ['@psr7.http_message_factory', '@class_resolver']
  694. class_resolver:
  695. class: Drupal\Core\DependencyInjection\ClassResolver
  696. calls:
  697. - [setContainer, ['@service_container']]
  698. title_resolver:
  699. class: Drupal\Core\Controller\TitleResolver
  700. arguments: ['@controller_resolver', '@string_translation']
  701. http_kernel:
  702. class: Stack\StackedHttpKernel
  703. http_kernel.basic:
  704. class: Symfony\Component\HttpKernel\HttpKernel
  705. arguments: ['@event_dispatcher', '@controller_resolver', '@request_stack']
  706. http_middleware.negotiation:
  707. class: Drupal\Core\StackMiddleware\NegotiationMiddleware
  708. tags:
  709. - { name: http_middleware, priority: 400 }
  710. http_middleware.reverse_proxy:
  711. class: Drupal\Core\StackMiddleware\ReverseProxyMiddleware
  712. arguments: ['@settings']
  713. tags:
  714. - { name: http_middleware, priority: 300 }
  715. http_middleware.kernel_pre_handle:
  716. class: Drupal\Core\StackMiddleware\KernelPreHandle
  717. arguments: ['@kernel']
  718. tags:
  719. - { name: http_middleware, priority: 100 }
  720. http_middleware.session:
  721. class: Drupal\Core\StackMiddleware\Session
  722. tags:
  723. - { name: http_middleware, priority: 50 }
  724. calls:
  725. - [setContainer, ['@service_container']]
  726. http_middleware.cors:
  727. class: Asm89\Stack\Cors
  728. arguments: ['%cors.config%']
  729. tags:
  730. - { name: http_middleware, priority: 250 }
  731. psr7.http_foundation_factory:
  732. class: Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory
  733. psr7.http_message_factory:
  734. class: Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory
  735. language_manager:
  736. class: Drupal\Core\Language\LanguageManager
  737. arguments: ['@language.default']
  738. language.current_language_context:
  739. class: Drupal\Core\Language\ContextProvider\CurrentLanguageContext
  740. arguments: ['@language_manager']
  741. tags:
  742. - { name: 'context_provider' }
  743. language.default:
  744. class: Drupal\Core\Language\LanguageDefault
  745. arguments: ['%language.default_values%']
  746. string_translator.custom_strings:
  747. class: Drupal\Core\StringTranslation\Translator\CustomStrings
  748. arguments: ['@settings']
  749. tags:
  750. - { name: string_translator, priority: 30 }
  751. string_translation:
  752. class: Drupal\Core\StringTranslation\TranslationManager
  753. arguments: ['@language.default']
  754. tags:
  755. - { name: service_collector, tag: string_translator, call: addTranslator }
  756. database.replica:
  757. class: Drupal\Core\Database\Connection
  758. factory: Drupal\Core\Database\Database::getConnection
  759. arguments: [replica]
  760. typed_data_manager:
  761. class: Drupal\Core\TypedData\TypedDataManager
  762. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@class_resolver']
  763. calls:
  764. - [setValidationConstraintManager, ['@validation.constraint']]
  765. tags:
  766. - { name: plugin_manager_cache_clear }
  767. validation.constraint:
  768. class: Drupal\Core\Validation\ConstraintManager
  769. parent: default_plugin_manager
  770. tags:
  771. - { name: plugin_manager_cache_clear }
  772. lock:
  773. class: Drupal\Core\Lock\DatabaseLockBackend
  774. arguments: ['@database']
  775. tags:
  776. - { name: backend_overridable }
  777. lazy: true
  778. lock.persistent:
  779. class: Drupal\Core\Lock\PersistentDatabaseLockBackend
  780. arguments: ['@database']
  781. tags:
  782. - { name: backend_overridable }
  783. lazy: true
  784. router.request_context:
  785. class: Drupal\Core\Routing\RequestContext
  786. tags:
  787. - { name: persist }
  788. calls:
  789. - [fromRequestStack, ['@request_stack']]
  790. router.admin_context:
  791. class: Drupal\Core\Routing\AdminContext
  792. arguments: ['@current_route_match']
  793. router.route_provider:
  794. class: Drupal\Core\Routing\RouteProvider
  795. arguments: ['@database', '@state', '@path.current', '@cache.data', '@path_processor_manager', '@cache_tags.invalidator']
  796. tags:
  797. - { name: event_subscriber }
  798. - { name: backend_overridable }
  799. router.route_provider.lazy_builder:
  800. class: Drupal\Core\Routing\RouteProviderLazyBuilder
  801. arguments: ['@router.route_provider', '@router.builder']
  802. router.route_preloader:
  803. class: Drupal\Core\Routing\RoutePreloader
  804. arguments: ['@router.route_provider', '@state', '@cache.bootstrap']
  805. tags:
  806. - { name: 'event_subscriber' }
  807. router.matcher.final_matcher:
  808. class: Drupal\Core\Routing\UrlMatcher
  809. arguments: ['@path.current']
  810. deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
  811. router.matcher:
  812. class: Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher
  813. arguments: ['@router.route_provider']
  814. calls:
  815. - [setFinalMatcher, ['@router.matcher.final_matcher']]
  816. tags:
  817. - { name: service_collector, tag: non_lazy_route_filter, call: addRouteFilter }
  818. deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
  819. route_filter.lazy_collector:
  820. class: Drupal\Core\Routing\LazyRouteFilter
  821. tags:
  822. - { name: non_lazy_route_filter }
  823. parent: container.trait
  824. route_filter_subscriber:
  825. class: Drupal\Core\EventSubscriber\RouteFilterSubscriber
  826. arguments: ['@route_filter.lazy_collector']
  827. tags:
  828. - { name: event_subscriber }
  829. url_generator.non_bubbling:
  830. class: Drupal\Core\Routing\UrlGenerator
  831. arguments: ['@router.route_provider', '@path_processor_manager', '@route_processor_manager', '@request_stack', '%filter_protocols%']
  832. public: false
  833. calls:
  834. - [setContext, ['@?router.request_context']]
  835. url_generator:
  836. class: Drupal\Core\Render\MetadataBubblingUrlGenerator
  837. arguments: ['@url_generator.non_bubbling', '@renderer']
  838. calls:
  839. - [setContext, ['@?router.request_context']]
  840. redirect.destination:
  841. class: Drupal\Core\Routing\RedirectDestination
  842. arguments: ['@request_stack', '@url_generator']
  843. unrouted_url_assembler:
  844. class: Drupal\Core\Utility\UnroutedUrlAssembler
  845. arguments: ['@request_stack', '@path_processor_manager', '%filter_protocols%']
  846. link_generator:
  847. class: Drupal\Core\Utility\LinkGenerator
  848. arguments: ['@url_generator', '@module_handler', '@renderer']
  849. router:
  850. class: Drupal\Core\Routing\AccessAwareRouter
  851. arguments: ['@router.no_access_checks', '@access_manager', '@current_user']
  852. router.dynamic:
  853. class: Symfony\Cmf\Component\Routing\DynamicRouter
  854. arguments: ['@router.request_context', '@router.matcher', '@url_generator']
  855. tags:
  856. - { name: service_collector, tag: non_lazy_route_enhancer, call: addRouteEnhancer }
  857. deprecated: The "%service_id%" service is deprecated. You should use the 'router.no_access_checks' service instead.
  858. router.no_access_checks:
  859. class: \Drupal\Core\Routing\Router
  860. arguments: ['@router.route_provider', '@path.current', '@url_generator']
  861. tags:
  862. - { name: service_collector, tag: non_lazy_route_enhancer, call: addRouteEnhancer }
  863. - { name: service_collector, tag: non_lazy_route_filter, call: addRouteFilter }
  864. calls:
  865. - [setContext, ['@router.request_context']]
  866. router.path_roots_subscriber:
  867. class: Drupal\Core\EventSubscriber\PathRootsSubscriber
  868. arguments: ['@state']
  869. tags:
  870. - { name: event_subscriber }
  871. entity.query:
  872. class: Drupal\Core\Entity\Query\QueryFactory
  873. arguments: ['@entity.manager']
  874. calls:
  875. - [setContainer, ['@service_container']]
  876. entity.query.config:
  877. class: Drupal\Core\Config\Entity\Query\QueryFactory
  878. arguments: ['@config.factory', '@keyvalue', '@config.manager']
  879. tags:
  880. - { name: event_subscriber }
  881. entity.query.sql:
  882. class: Drupal\Core\Entity\Query\Sql\QueryFactory
  883. arguments: ['@database']
  884. tags:
  885. - { name: backend_overridable }
  886. pgsql.entity.query.sql:
  887. class: Drupal\Core\Entity\Query\Sql\pgsql\QueryFactory
  888. arguments: ['@database']
  889. entity.query.null:
  890. class: Drupal\Core\Entity\Query\Null\QueryFactory
  891. entity.query.keyvalue:
  892. class: Drupal\Core\Entity\KeyValueStore\Query\QueryFactory
  893. arguments: ['@keyvalue']
  894. router.dumper:
  895. class: Drupal\Core\Routing\MatcherDumper
  896. arguments: ['@database', '@state']
  897. tags:
  898. - { name: backend_overridable }
  899. lazy: true
  900. router.builder:
  901. class: Drupal\Core\Routing\RouteBuilder
  902. arguments: ['@router.dumper', '@lock', '@event_dispatcher', '@module_handler', '@controller_resolver', '@access_manager.check_provider']
  903. lazy: true
  904. tags:
  905. - { name: needs_destruction }
  906. menu.rebuild_subscriber:
  907. class: Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber
  908. arguments: ['@lock', '@plugin.manager.menu.link']
  909. tags:
  910. - { name: event_subscriber }
  911. path.alias_storage:
  912. class: Drupal\Core\Path\AliasStorage
  913. arguments: ['@database', '@module_handler']
  914. tags:
  915. - { name: backend_overridable }
  916. path.matcher:
  917. class: Drupal\Core\Path\PathMatcher
  918. arguments: ['@config.factory', '@current_route_match']
  919. path.validator:
  920. class: Drupal\Core\Path\PathValidator
  921. arguments: ['@router', '@router.no_access_checks', '@current_user', '@path_processor_manager']
  922. # The argument to the hashing service defined in services.yml, to the
  923. # constructor of PhpassHashedPassword is the log2 number of iterations for
  924. # password stretching.
  925. # @todo increase by 1 every Drupal version in order to counteract increases in
  926. # the speed and power of computers available to crack the hashes. The current
  927. # password hashing method was introduced in Drupal 7 with a log2 count of 15.
  928. password:
  929. class: Drupal\Core\Password\PhpassHashedPassword
  930. arguments: [16]
  931. request_format_route_filter:
  932. class: Drupal\Core\Routing\RequestFormatRouteFilter
  933. tags:
  934. - { name: route_filter }
  935. method_filter:
  936. class: Drupal\Core\Routing\MethodFilter
  937. tags:
  938. - { name: route_filter, priority: 1 }
  939. content_type_header_matcher:
  940. class: Drupal\Core\Routing\ContentTypeHeaderMatcher
  941. tags:
  942. - { name: route_filter }
  943. paramconverter_manager:
  944. class: Drupal\Core\ParamConverter\ParamConverterManager
  945. tags:
  946. - { name: service_collector, tag: paramconverter, call: addConverter }
  947. paramconverter_subscriber:
  948. class: Drupal\Core\EventSubscriber\ParamConverterSubscriber
  949. tags:
  950. - { name: event_subscriber }
  951. arguments: ['@paramconverter_manager']
  952. paramconverter.entity:
  953. class: Drupal\Core\ParamConverter\EntityConverter
  954. tags:
  955. - { name: paramconverter }
  956. arguments: ['@entity.manager']
  957. paramconverter.entity_revision:
  958. class: Drupal\Core\ParamConverter\EntityRevisionParamConverter
  959. tags:
  960. - { name: paramconverter }
  961. arguments: ['@entity_type.manager', '@entity.repository']
  962. paramconverter.configentity_admin:
  963. class: Drupal\Core\ParamConverter\AdminPathConfigEntityConverter
  964. tags:
  965. # Use a higher priority than EntityConverter, see the class for details.
  966. - { name: paramconverter, priority: 5 }
  967. arguments: ['@entity.manager', '@config.factory', '@router.admin_context']
  968. lazy: true
  969. route_subscriber.module:
  970. class: Drupal\Core\EventSubscriber\ModuleRouteSubscriber
  971. tags:
  972. - { name: event_subscriber }
  973. arguments: ['@module_handler']
  974. resolver_manager.entity:
  975. class: Drupal\Core\Entity\EntityResolverManager
  976. arguments: ['@entity.manager', '@class_resolver']
  977. route_subscriber.entity:
  978. class: Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber
  979. tags:
  980. - { name: event_subscriber }
  981. arguments: ['@resolver_manager.entity']
  982. ajax_response.subscriber:
  983. class: Drupal\Core\EventSubscriber\AjaxResponseSubscriber
  984. arguments: ['@ajax_response.attachments_processor']
  985. tags:
  986. - { name: event_subscriber }
  987. form_ajax_subscriber:
  988. class: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber
  989. arguments: ['@form_ajax_response_builder', '@string_translation']
  990. tags:
  991. - { name: event_subscriber }
  992. route_enhancer.lazy_collector:
  993. class: Drupal\Core\Routing\LazyRouteEnhancer
  994. tags:
  995. - { name: non_lazy_route_enhancer, priority: 5000 }
  996. parent: container.trait
  997. route_enhancer_subscriber:
  998. class: Drupal\Core\EventSubscriber\RouteEnhancerSubscriber
  999. arguments: ['@route_enhancer.lazy_collector']
  1000. tags:
  1001. - { name: event_subscriber }
  1002. route_enhancer.param_conversion:
  1003. class: Drupal\Core\Routing\Enhancer\ParamConversionEnhancer
  1004. arguments: ['@paramconverter_manager']
  1005. tags:
  1006. - { name: route_enhancer }
  1007. - { name: event_subscriber }
  1008. route_enhancer.form:
  1009. class: Drupal\Core\Routing\Enhancer\FormRouteEnhancer
  1010. tags:
  1011. - { name: route_enhancer }
  1012. route_enhancer.entity:
  1013. class: Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
  1014. tags:
  1015. - { name: route_enhancer, priority: 20 }
  1016. route_enhancer.entity_revision:
  1017. class: Drupal\Core\Routing\Enhancer\EntityRevisionRouteEnhancer
  1018. tags:
  1019. - { name: route_enhancer }
  1020. route_special_attributes_subscriber:
  1021. class: Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber
  1022. tags:
  1023. - { name: event_subscriber }
  1024. route_http_method_subscriber:
  1025. class: Drupal\Core\EventSubscriber\RouteMethodSubscriber
  1026. tags:
  1027. - { name: event_subscriber }
  1028. psr_response_view_subscriber:
  1029. class: Drupal\Core\EventSubscriber\PsrResponseSubscriber
  1030. arguments: ['@psr7.http_foundation_factory']
  1031. tags:
  1032. - { name: event_subscriber }
  1033. # Main content view subscriber plus the renderers it uses.
  1034. main_content_view_subscriber:
  1035. class: Drupal\Core\EventSubscriber\MainContentViewSubscriber
  1036. arguments: ['@class_resolver', '@current_route_match', '%main_content_renderers%']
  1037. tags:
  1038. - { name: event_subscriber }
  1039. accept_negotiation_406:
  1040. class: Drupal\Core\EventSubscriber\AcceptNegotiation406
  1041. tags:
  1042. - { name: event_subscriber }
  1043. main_content_renderer.html:
  1044. class: Drupal\Core\Render\MainContent\HtmlRenderer
  1045. arguments: ['@title_resolver', '@plugin.manager.display_variant', '@event_dispatcher', '@module_handler', '@renderer', '@render_cache', '%renderer.config%']
  1046. tags:
  1047. - { name: render.main_content_renderer, format: html }
  1048. main_content_renderer.ajax:
  1049. class: Drupal\Core\Render\MainContent\AjaxRenderer
  1050. arguments: ['@element_info']
  1051. tags:
  1052. - { name: render.main_content_renderer, format: drupal_ajax }
  1053. - { name: render.main_content_renderer, format: iframeupload }
  1054. main_content_renderer.dialog:
  1055. class: Drupal\Core\Render\MainContent\DialogRenderer
  1056. arguments: ['@title_resolver']
  1057. tags:
  1058. - { name: render.main_content_renderer, format: drupal_dialog }
  1059. main_content_renderer.modal:
  1060. class: Drupal\Core\Render\MainContent\ModalRenderer
  1061. arguments: ['@title_resolver']
  1062. tags:
  1063. - { name: render.main_content_renderer, format: drupal_modal }
  1064. controller.form:
  1065. class: Drupal\Core\Controller\HtmlFormController
  1066. arguments: ['@controller_resolver', '@form_builder', '@class_resolver']
  1067. controller.entity_form:
  1068. class: Drupal\Core\Entity\HtmlEntityFormController
  1069. arguments: ['@controller_resolver', '@form_builder', '@entity.manager']
  1070. form_ajax_response_builder:
  1071. class: Drupal\Core\Form\FormAjaxResponseBuilder
  1072. arguments: ['@main_content_renderer.ajax', '@current_route_match']
  1073. router_listener:
  1074. class: Symfony\Component\HttpKernel\EventListener\RouterListener
  1075. tags:
  1076. - { name: event_subscriber }
  1077. arguments: ['@router', '@request_stack', '@router.request_context', NULL]
  1078. options_request_listener:
  1079. class: Drupal\Core\EventSubscriber\OptionsRequestSubscriber
  1080. arguments: ['@router.route_provider']
  1081. tags:
  1082. - { name: event_subscriber }
  1083. bare_html_page_renderer:
  1084. class: Drupal\Core\Render\BareHtmlPageRenderer
  1085. arguments: ['@renderer', '@html_response.attachments_processor']
  1086. lazy: true
  1087. private_key:
  1088. class: Drupal\Core\PrivateKey
  1089. arguments: ['@state']
  1090. csrf_token:
  1091. class: Drupal\Core\Access\CsrfTokenGenerator
  1092. arguments: ['@private_key', '@session_manager.metadata_bag']
  1093. access_arguments_resolver_factory:
  1094. class: Drupal\Core\Access\AccessArgumentsResolverFactory
  1095. access_manager:
  1096. class: Drupal\Core\Access\AccessManager
  1097. arguments: ['@router.route_provider', '@paramconverter_manager', '@access_arguments_resolver_factory', '@current_user', '@access_manager.check_provider']
  1098. access_manager.check_provider:
  1099. class: Drupal\Core\Access\CheckProvider
  1100. calls:
  1101. - [setContainer, ['@service_container']]
  1102. public: false
  1103. access_check.default:
  1104. class: Drupal\Core\Access\DefaultAccessCheck
  1105. tags:
  1106. - { name: access_check, applies_to: _access }
  1107. access_check.entity:
  1108. class: Drupal\Core\Entity\EntityAccessCheck
  1109. tags:
  1110. - { name: access_check, applies_to: _entity_access }
  1111. access_check.entity_create:
  1112. class: Drupal\Core\Entity\EntityCreateAccessCheck
  1113. arguments: ['@entity.manager']
  1114. tags:
  1115. - { name: access_check, applies_to: _entity_create_access }
  1116. access_check.entity_create_any:
  1117. class: Drupal\Core\Entity\EntityCreateAnyAccessCheck
  1118. arguments: ['@entity_type.manager', '@entity_type.bundle.info']
  1119. tags:
  1120. - { name: access_check, applies_to: _entity_create_any_access }
  1121. access_check.theme:
  1122. class: Drupal\Core\Theme\ThemeAccessCheck
  1123. arguments: ['@theme_handler']
  1124. tags:
  1125. - { name: access_check, applies_to: _access_theme }
  1126. access_check.custom:
  1127. class: Drupal\Core\Access\CustomAccessCheck
  1128. arguments: ['@controller_resolver', '@access_arguments_resolver_factory']
  1129. tags:
  1130. - { name: access_check, applies_to: _custom_access }
  1131. access_check.csrf:
  1132. class: Drupal\Core\Access\CsrfAccessCheck
  1133. tags:
  1134. - { name: access_check, applies_to: _csrf_token, needs_incoming_request: TRUE }
  1135. arguments: ['@csrf_token']
  1136. access_check.header.csrf:
  1137. class: Drupal\Core\Access\CsrfRequestHeaderAccessCheck
  1138. arguments: ['@session_configuration', '@csrf_token']
  1139. tags:
  1140. - { name: access_check }
  1141. maintenance_mode:
  1142. class: Drupal\Core\Site\MaintenanceMode
  1143. arguments: ['@state', '@current_user']
  1144. maintenance_mode_subscriber:
  1145. class: Drupal\Core\EventSubscriber\MaintenanceModeSubscriber
  1146. arguments: ['@maintenance_mode', '@config.factory', '@string_translation', '@url_generator', '@current_user', '@bare_html_page_renderer']
  1147. tags:
  1148. - { name: event_subscriber }
  1149. path_subscriber:
  1150. class: Drupal\Core\EventSubscriber\PathSubscriber
  1151. tags:
  1152. - { name: event_subscriber }
  1153. arguments: ['@path.alias_manager', '@path.current']
  1154. route_access_response_subscriber:
  1155. class: Drupal\Core\EventSubscriber\RouteAccessResponseSubscriber
  1156. tags:
  1157. - { name: event_subscriber }
  1158. client_error_response_subscriber:
  1159. class: Drupal\Core\EventSubscriber\ClientErrorResponseSubscriber
  1160. tags:
  1161. - { name: event_subscriber }
  1162. anonymous_user_response_subscriber:
  1163. class: Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber
  1164. tags:
  1165. - { name: event_subscriber }
  1166. arguments: ['@current_user']
  1167. ajax_response.attachments_processor:
  1168. class: Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor
  1169. tags:
  1170. arguments: ['@asset.resolver', '@config.factory', '@asset.css.collection_renderer', '@asset.js.collection_renderer', '@request_stack', '@renderer', '@module_handler']
  1171. html_response.attachments_processor:
  1172. class: Drupal\Core\Render\HtmlResponseAttachmentsProcessor
  1173. tags:
  1174. arguments: ['@asset.resolver', '@config.factory', '@asset.css.collection_renderer', '@asset.js.collection_renderer', '@request_stack', '@renderer', '@module_handler']
  1175. html_response.subscriber:
  1176. class: Drupal\Core\EventSubscriber\HtmlResponseSubscriber
  1177. tags:
  1178. - { name: event_subscriber }
  1179. arguments: ['@html_response.attachments_processor']
  1180. finish_response_subscriber:
  1181. class: Drupal\Core\EventSubscriber\FinishResponseSubscriber
  1182. tags:
  1183. - { name: event_subscriber }
  1184. arguments: ['@language_manager', '@config.factory', '@page_cache_request_policy', '@page_cache_response_policy', '@cache_contexts_manager', '%http.response.debug_cacheability_headers%']
  1185. response_generator_subscriber:
  1186. class: Drupal\Core\EventSubscriber\ResponseGeneratorSubscriber
  1187. tags:
  1188. - { name: event_subscriber }
  1189. redirect_response_subscriber:
  1190. class: Drupal\Core\EventSubscriber\RedirectResponseSubscriber
  1191. arguments: ['@unrouted_url_assembler', '@router.request_context']
  1192. tags:
  1193. - { name: event_subscriber }
  1194. redirect_leading_slashes_subscriber:
  1195. class: Drupal\Core\EventSubscriber\RedirectLeadingSlashesSubscriber
  1196. tags:
  1197. - { name: event_subscriber }
  1198. request_close_subscriber:
  1199. class: Drupal\Core\EventSubscriber\RequestCloseSubscriber
  1200. tags:
  1201. - { name: event_subscriber }
  1202. arguments: ['@module_handler']
  1203. config_import_subscriber:
  1204. class: Drupal\Core\EventSubscriber\ConfigImportSubscriber
  1205. tags:
  1206. - { name: event_subscriber }
  1207. arguments: ['@theme_handler']
  1208. config_snapshot_subscriber:
  1209. class: Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber
  1210. tags:
  1211. - { name: event_subscriber }
  1212. arguments: ['@config.manager', '@config.storage', '@config.storage.snapshot']
  1213. exception.needs_installer:
  1214. class: Drupal\Core\EventSubscriber\ExceptionDetectNeedsInstallSubscriber
  1215. arguments: ['@database']
  1216. tags:
  1217. - { name: event_subscriber }
  1218. exception.default_json:
  1219. class: Drupal\Core\EventSubscriber\ExceptionJsonSubscriber
  1220. tags:
  1221. - { name: event_subscriber }
  1222. exception.default_html:
  1223. class: Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber
  1224. tags:
  1225. - { name: event_subscriber }
  1226. arguments: ['@http_kernel', '@logger.channel.php', '@redirect.destination', '@router.no_access_checks']
  1227. exception.default:
  1228. class: Drupal\Core\EventSubscriber\DefaultExceptionSubscriber
  1229. tags:
  1230. - { name: event_subscriber }
  1231. arguments: ['@config.factory']
  1232. exception.logger:
  1233. class: Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber
  1234. tags:
  1235. - { name: event_subscriber }
  1236. arguments: ['@logger.factory']
  1237. exception.custom_page_html:
  1238. class: Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber
  1239. tags:
  1240. - { name: event_subscriber }
  1241. arguments: ['@config.factory', '@http_kernel', '@logger.channel.php', '@redirect.destination', '@router.no_access_checks', '@access_manager']
  1242. exception.fast_404_html:
  1243. class: Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber
  1244. tags:
  1245. - { name: event_subscriber }
  1246. arguments: ['@config.factory', '@http_kernel']
  1247. exception.test_site:
  1248. class: Drupal\Core\EventSubscriber\ExceptionTestSiteSubscriber
  1249. tags:
  1250. - { name: event_subscriber }
  1251. exception.enforced_form_response:
  1252. class: Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber
  1253. tags:
  1254. - { name: event_subscriber }
  1255. route_processor_manager:
  1256. class: Drupal\Core\RouteProcessor\RouteProcessorManager
  1257. tags:
  1258. - { name: service_collector, tag: route_processor_outbound, call: addOutbound }
  1259. path_processor_manager:
  1260. class: Drupal\Core\PathProcessor\PathProcessorManager
  1261. tags:
  1262. - { name: service_collector, tag: path_processor_inbound, call: addInbound }
  1263. - { name: service_collector, tag: path_processor_outbound, call: addOutbound }
  1264. path_processor_decode:
  1265. class: Drupal\Core\PathProcessor\PathProcessorDecode
  1266. tags:
  1267. - { name: path_processor_inbound, priority: 1000 }
  1268. path_processor_front:
  1269. class: Drupal\Core\PathProcessor\PathProcessorFront
  1270. tags:
  1271. - { name: path_processor_inbound, priority: 200 }
  1272. - { name: path_processor_outbound, priority: 200 }
  1273. arguments: ['@config.factory']
  1274. route_processor_current:
  1275. class: Drupal\Core\RouteProcessor\RouteProcessorCurrent
  1276. arguments: ['@current_route_match']
  1277. tags:
  1278. - { name: route_processor_outbound, priority: 200 }
  1279. path_processor_alias:
  1280. class: Drupal\Core\PathProcessor\PathProcessorAlias
  1281. tags:
  1282. - { name: path_processor_inbound, priority: 100 }
  1283. - { name: path_processor_outbound, priority: 300 }
  1284. arguments: ['@path.alias_manager']
  1285. route_processor_csrf:
  1286. class: Drupal\Core\Access\RouteProcessorCsrf
  1287. tags:
  1288. - { name: route_processor_outbound }
  1289. arguments: ['@csrf_token']
  1290. transliteration:
  1291. class: Drupal\Core\Transliteration\PhpTransliteration
  1292. arguments: [null, '@module_handler']
  1293. flood:
  1294. class: Drupal\Core\Flood\DatabaseBackend
  1295. arguments: ['@database', '@request_stack']
  1296. tags:
  1297. - { name: backend_overridable }
  1298. plugin.manager.mail:
  1299. class: Drupal\Core\Mail\MailManager
  1300. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@config.factory', '@logger.factory', '@string_translation', '@renderer']
  1301. plugin.manager.condition:
  1302. class: Drupal\Core\Condition\ConditionManager
  1303. parent: default_plugin_manager
  1304. plugin.manager.element_info:
  1305. class: Drupal\Core\Render\ElementInfoManager
  1306. arguments: ['@container.namespaces', '@cache.discovery', '@cache_tags.invalidator', '@module_handler', '@theme.manager']
  1307. stream_wrapper_manager:
  1308. class: Drupal\Core\StreamWrapper\StreamWrapperManager
  1309. calls:
  1310. - [setContainer, ['@service_container']]
  1311. stream_wrapper.public:
  1312. class: Drupal\Core\StreamWrapper\PublicStream
  1313. tags:
  1314. - { name: stream_wrapper, scheme: public }
  1315. stream_wrapper.temporary:
  1316. class: Drupal\Core\StreamWrapper\TemporaryStream
  1317. tags:
  1318. - { name: stream_wrapper, scheme: temporary }
  1319. kernel_destruct_subscriber:
  1320. class: Drupal\Core\EventSubscriber\KernelDestructionSubscriber
  1321. tags:
  1322. - { name: event_subscriber }
  1323. calls:
  1324. - [setContainer, ['@service_container']]
  1325. image.toolkit.manager:
  1326. class: Drupal\Core\ImageToolkit\ImageToolkitManager
  1327. arguments: ['@config.factory']
  1328. parent: default_plugin_manager
  1329. tags:
  1330. - { name: plugin_manager_cache_clear }
  1331. image.toolkit.operation.manager:
  1332. class: Drupal\Core\ImageToolkit\ImageToolkitOperationManager
  1333. arguments: ['@logger.channel.image', '@image.toolkit.manager']
  1334. parent: default_plugin_manager
  1335. tags:
  1336. - { name: plugin_manager_cache_clear }
  1337. image.factory:
  1338. class: Drupal\Core\Image\ImageFactory
  1339. arguments: ['@image.toolkit.manager']
  1340. breadcrumb:
  1341. class: Drupal\Core\Breadcrumb\BreadcrumbManager
  1342. arguments: ['@module_handler']
  1343. tags:
  1344. - { name: service_collector, tag: breadcrumb_builder, call: addBuilder }
  1345. token:
  1346. class: Drupal\Core\Utility\Token
  1347. arguments: ['@module_handler', '@cache.default', '@language_manager', '@cache_tags.invalidator', '@renderer']
  1348. batch.storage:
  1349. class: Drupal\Core\Batch\BatchStorage
  1350. arguments: ['@database', '@session', '@csrf_token']
  1351. tags:
  1352. - { name: backend_overridable }
  1353. lazy: true
  1354. replica_database_ignore__subscriber:
  1355. class: Drupal\Core\EventSubscriber\ReplicaDatabaseIgnoreSubscriber
  1356. tags:
  1357. - {name: event_subscriber}
  1358. country_manager:
  1359. class: Drupal\Core\Locale\CountryManager
  1360. arguments: ['@module_handler']
  1361. date.formatter:
  1362. class: Drupal\Core\Datetime\DateFormatter
  1363. arguments: ['@entity.manager', '@language_manager', '@string_translation', '@config.factory', '@request_stack']
  1364. feed.bridge.reader:
  1365. class: Drupal\Component\Bridge\ZfExtensionManagerSfContainer
  1366. calls:
  1367. - [setContainer, ['@service_container']]
  1368. arguments: ['feed.reader.']
  1369. feed.bridge.writer:
  1370. class: Drupal\Component\Bridge\ZfExtensionManagerSfContainer
  1371. calls:
  1372. - [setContainer, ['@service_container']]
  1373. arguments: ['feed.writer.']
  1374. # Zend Feed reader plugins. Plugin instances should not be shared.
  1375. feed.reader.dublincoreentry:
  1376. class: Zend\Feed\Reader\Extension\DublinCore\Entry
  1377. shared: false
  1378. feed.reader.dublincorefeed:
  1379. class: Zend\Feed\Reader\Extension\DublinCore\Feed
  1380. shared: false
  1381. feed.reader.contententry:
  1382. class: Zend\Feed\Reader\Extension\Content\Entry
  1383. shared: false
  1384. feed.reader.atomentry:
  1385. class: Zend\Feed\Reader\Extension\Atom\Entry
  1386. shared: false
  1387. feed.reader.atomfeed:
  1388. class: Zend\Feed\Reader\Extension\Atom\Feed
  1389. shared: false
  1390. feed.reader.slashentry:
  1391. class: Zend\Feed\Reader\Extension\Slash\Entry
  1392. shared: false
  1393. feed.reader.wellformedwebentry:
  1394. class: Zend\Feed\Reader\Extension\WellFormedWeb\Entry
  1395. shared: false
  1396. feed.reader.threadentry:
  1397. class: Zend\Feed\Reader\Extension\Thread\Entry
  1398. shared: false
  1399. feed.reader.podcastentry:
  1400. class: Zend\Feed\Reader\Extension\Podcast\Entry
  1401. shared: false
  1402. feed.reader.podcastfeed:
  1403. class: Zend\Feed\Reader\Extension\Podcast\Feed
  1404. shared: false
  1405. # Zend Feed writer plugins. Plugins should be set as prototype scope.
  1406. feed.writer.atomrendererfeed:
  1407. class: Zend\Feed\Writer\Extension\Atom\Renderer\Feed
  1408. shared: false
  1409. feed.writer.contentrendererentry:
  1410. class: Zend\Feed\Writer\Extension\Content\Renderer\Entry
  1411. shared: false
  1412. feed.writer.dublincorerendererentry:
  1413. class: Zend\Feed\Writer\Extension\DublinCore\Renderer\Entry
  1414. shared: false
  1415. feed.writer.dublincorerendererfeed:
  1416. class: Zend\Feed\Writer\Extension\DublinCore\Renderer\Feed
  1417. shared: false
  1418. feed.writer.itunesentry:
  1419. class: Zend\Feed\Writer\Extension\ITunes\Entry
  1420. shared: false
  1421. feed.writer.itunesfeed:
  1422. class: Zend\Feed\Writer\Extension\ITunes\Feed
  1423. shared: false
  1424. feed.writer.itunesrendererentry:
  1425. class: Zend\Feed\Writer\Extension\ITunes\Renderer\Entry
  1426. shared: false
  1427. feed.writer.itunesrendererfeed:
  1428. class: Zend\Feed\Writer\Extension\ITunes\Renderer\Feed
  1429. shared: false
  1430. feed.writer.slashrendererentry:
  1431. class: Zend\Feed\Writer\Extension\Slash\Renderer\Entry
  1432. shared: false
  1433. feed.writer.threadingrendererentry:
  1434. class: Zend\Feed\Writer\Extension\Threading\Renderer\Entry
  1435. shared: false
  1436. feed.writer.wellformedwebrendererentry:
  1437. class: Zend\Feed\Writer\Extension\WellFormedWeb\Renderer\Entry
  1438. shared: false
  1439. theme.manager:
  1440. class: Drupal\Core\Theme\ThemeManager
  1441. arguments: ['@app.root', '@theme.negotiator', '@theme.initialization', '@module_handler']
  1442. calls:
  1443. - [setThemeRegistry, ['@theme.registry']]
  1444. theme.initialization:
  1445. class: Drupal\Core\Theme\ThemeInitialization
  1446. arguments: ['@app.root', '@theme_handler', '@cache.bootstrap', '@module_handler']
  1447. theme.registry:
  1448. class: Drupal\Core\Theme\Registry
  1449. arguments: ['@app.root', '@cache.default', '@lock', '@module_handler', '@theme_handler', '@theme.initialization', null, '@cache.bootstrap']
  1450. tags:
  1451. - { name: needs_destruction }
  1452. calls:
  1453. - [setThemeManager, ['@theme.manager']]
  1454. authentication:
  1455. class: Drupal\Core\Authentication\AuthenticationManager
  1456. arguments: ['@authentication_collector']
  1457. authentication_collector:
  1458. class: Drupal\Core\Authentication\AuthenticationCollector
  1459. tags:
  1460. - { name: service_collector, tag: authentication_provider, call: addProvider }
  1461. authentication_subscriber:
  1462. class: Drupal\Core\EventSubscriber\AuthenticationSubscriber
  1463. arguments: ['@authentication', '@current_user']
  1464. tags:
  1465. - { name: event_subscriber }
  1466. account_switcher:
  1467. class: Drupal\Core\Session\AccountSwitcher
  1468. arguments: ['@current_user', '@session_handler.write_safe']
  1469. user_permissions_hash_generator:
  1470. class: Drupal\Core\Session\PermissionsHashGenerator
  1471. arguments: ['@private_key', '@cache.bootstrap', '@cache.static']
  1472. current_user:
  1473. class: Drupal\Core\Session\AccountProxy
  1474. session_configuration:
  1475. class: Drupal\Core\Session\SessionConfiguration
  1476. arguments: ['%session.storage.options%']
  1477. session:
  1478. class: Symfony\Component\HttpFoundation\Session\Session
  1479. arguments: ['@session_manager', '@session.attribute_bag', '@session.flash_bag']
  1480. session.flash_bag:
  1481. class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag
  1482. public: false
  1483. session.attribute_bag:
  1484. class: Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag
  1485. public: false
  1486. session_handler:
  1487. alias: session_handler.storage
  1488. session_handler.storage:
  1489. class: Drupal\Core\Session\SessionHandler
  1490. arguments: ['@request_stack', '@database']
  1491. tags:
  1492. - { name: backend_overridable }
  1493. session_handler.write_check:
  1494. class: Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler
  1495. tags:
  1496. - { name: session_handler_proxy, priority: 100 }
  1497. session_handler.write_safe:
  1498. class: Drupal\Core\Session\WriteSafeSessionHandler
  1499. tags:
  1500. - { name: session_handler_proxy, priority: 150 }
  1501. session_manager:
  1502. class: Drupal\Core\Session\SessionManager
  1503. arguments: ['@request_stack', '@database', '@session_manager.metadata_bag', '@session_configuration', '@session_handler']
  1504. tags:
  1505. - { name: backend_overridable }
  1506. calls:
  1507. - [setWriteSafeHandler, ['@session_handler.write_safe']]
  1508. session_manager.metadata_bag:
  1509. class: Drupal\Core\Session\MetadataBag
  1510. arguments: ['@settings']
  1511. asset.css.collection_renderer:
  1512. class: Drupal\Core\Asset\CssCollectionRenderer
  1513. arguments: [ '@state' ]
  1514. asset.css.collection_optimizer:
  1515. class: Drupal\Core\Asset\CssCollectionOptimizer
  1516. arguments: [ '@asset.css.collection_grouper', '@asset.css.optimizer', '@asset.css.dumper', '@state' ]
  1517. asset.css.optimizer:
  1518. class: Drupal\Core\Asset\CssOptimizer
  1519. asset.css.collection_grouper:
  1520. class: Drupal\Core\Asset\CssCollectionGrouper
  1521. asset.css.dumper:
  1522. class: Drupal\Core\Asset\AssetDumper
  1523. asset.js.collection_renderer:
  1524. class: Drupal\Core\Asset\JsCollectionRenderer
  1525. arguments: [ '@state' ]
  1526. asset.js.collection_optimizer:
  1527. class: Drupal\Core\Asset\JsCollectionOptimizer
  1528. arguments: [ '@asset.js.collection_grouper', '@asset.js.optimizer', '@asset.js.dumper', '@state' ]
  1529. asset.js.optimizer:
  1530. class: Drupal\Core\Asset\JsOptimizer
  1531. asset.js.collection_grouper:
  1532. class: Drupal\Core\Asset\JsCollectionGrouper
  1533. asset.js.dumper:
  1534. class: Drupal\Core\Asset\AssetDumper
  1535. library.discovery:
  1536. class: Drupal\Core\Asset\LibraryDiscovery
  1537. arguments: ['@library.discovery.collector']
  1538. library.discovery.collector:
  1539. class: Drupal\Core\Asset\LibraryDiscoveryCollector
  1540. arguments: ['@cache.discovery', '@lock', '@library.discovery.parser', '@theme.manager']
  1541. tags:
  1542. - { name: needs_destruction }
  1543. library.discovery.parser:
  1544. class: Drupal\Core\Asset\LibraryDiscoveryParser
  1545. arguments: ['@app.root', '@module_handler', '@theme.manager']
  1546. library.dependency_resolver:
  1547. class: Drupal\Core\Asset\LibraryDependencyResolver
  1548. arguments: ['@library.discovery']
  1549. asset.resolver:
  1550. class: Drupal\Core\Asset\AssetResolver
  1551. arguments: ['@library.discovery', '@library.dependency_resolver', '@module_handler', '@theme.manager', '@language_manager', '@cache.data']
  1552. info_parser:
  1553. class: Drupal\Core\Extension\InfoParser
  1554. twig:
  1555. class: Drupal\Core\Template\TwigEnvironment
  1556. arguments: ['@app.root', '@cache.default', '%twig_extension_hash%', '@state', '@twig.loader', '%twig.config%']
  1557. tags:
  1558. - { name: service_collector, tag: 'twig.extension', call: addExtension }
  1559. twig.extension:
  1560. class: Drupal\Core\Template\TwigExtension
  1561. arguments: ['@renderer', '@url_generator', '@theme.manager', '@date.formatter']
  1562. tags:
  1563. - { name: twig.extension, priority: 100 }
  1564. # @todo Figure out what to do about debugging functions.
  1565. # @see https://www.drupal.org/node/1804998
  1566. twig.extension.debug:
  1567. class: Twig_Extension_Debug
  1568. tags:
  1569. - { name: twig.extension }
  1570. twig.loader:
  1571. class: Twig_Loader_Chain
  1572. public: false
  1573. tags:
  1574. - { name: service_collector, tag: twig.loader, call: addLoader, required: TRUE }
  1575. twig.loader.filesystem:
  1576. class: Drupal\Core\Template\Loader\FilesystemLoader
  1577. arguments: ['@app.root', '@module_handler', '@theme_handler']
  1578. tags:
  1579. - { name: twig.loader, priority: 100 }
  1580. twig.loader.theme_registry:
  1581. class: Drupal\Core\Template\Loader\ThemeRegistryLoader
  1582. arguments: ['@theme.registry']
  1583. tags:
  1584. - { name: twig.loader, priority: 0 }
  1585. twig.loader.string:
  1586. class: Drupal\Core\Template\Loader\StringLoader
  1587. tags:
  1588. - { name: twig.loader, priority: -100 }
  1589. element_info:
  1590. alias: plugin.manager.element_info
  1591. file.mime_type.guesser:
  1592. class: Drupal\Core\File\MimeType\MimeTypeGuesser
  1593. arguments: ['@stream_wrapper_manager']
  1594. tags:
  1595. - { name: service_collector, tag: mime_type_guesser, call: addGuesser }
  1596. lazy: true
  1597. file.mime_type.guesser.extension:
  1598. class: Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser
  1599. arguments: ['@module_handler']
  1600. tags:
  1601. - { name: mime_type_guesser }
  1602. lazy: true
  1603. # Currently needs to be public as it is called by
  1604. # \Drupal\Core\Render\Element\StatusMessages.
  1605. # @todo Consider making this service private again after
  1606. # https://www.drupal.org/node/2367555 lands.
  1607. render_placeholder_generator:
  1608. class: Drupal\Core\Render\PlaceholderGenerator
  1609. arguments: ['%renderer.config%']
  1610. render_cache:
  1611. class: Drupal\Core\Render\PlaceholderingRenderCache
  1612. arguments: ['@request_stack', '@cache_factory', '@cache_contexts_manager', '@render_placeholder_generator']
  1613. renderer:
  1614. class: Drupal\Core\Render\Renderer
  1615. arguments: ['@controller_resolver', '@theme.manager', '@plugin.manager.element_info', '@render_placeholder_generator', '@render_cache', '@request_stack', '%renderer.config%']
  1616. early_rendering_controller_wrapper_subscriber:
  1617. class: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber
  1618. arguments: ['@controller_resolver', '@renderer']
  1619. tags:
  1620. - { name: event_subscriber }
  1621. # Placeholder strategies for rendering placeholders.
  1622. html_response.placeholder_strategy_subscriber:
  1623. class: Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber
  1624. tags:
  1625. - { name: event_subscriber }
  1626. arguments: ['@placeholder_strategy']
  1627. placeholder_strategy:
  1628. class: Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy
  1629. tags:
  1630. - { name: service_collector, tag: placeholder_strategy, call: addPlaceholderStrategy }
  1631. placeholder_strategy.single_flush:
  1632. class: Drupal\Core\Render\Placeholder\SingleFlushStrategy
  1633. tags:
  1634. - { name: placeholder_strategy, priority: -1000 }
  1635. email.validator:
  1636. class: Egulias\EmailValidator\EmailValidator
  1637. update.post_update_registry:
  1638. class: Drupal\Core\Update\UpdateRegistry
  1639. factory: ['@update.post_update_registry_factory', create]
  1640. update.post_update_registry_factory:
  1641. class: Drupal\Core\Update\UpdateRegistryFactory
  1642. parent: container.trait
  1643. uuid:
  1644. class: Drupal\Component\Uuid\Php
  1645. response_filter.active_link:
  1646. class: Drupal\Core\EventSubscriber\ActiveLinkResponseFilter
  1647. arguments: ['@current_user', '@path.current', '@path.matcher', '@language_manager']
  1648. tags:
  1649. - { name: event_subscriber }
  1650. response_filter.rss.relative_url:
  1651. class: Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter
  1652. tags:
  1653. - { name: event_subscriber }