core.services.yml 64 KB

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