core.services.yml 66 KB

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