core.services.yml 69 KB

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