core.services.yml 64 KB

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