core.services.yml 64 KB

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