reference.php 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652
  1. <?php
  2. // This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
  3. namespace Symfony\Component\DependencyInjection\Loader\Configurator;
  4. use Symfony\Component\Config\Loader\ParamConfigurator as Param;
  5. /**
  6. * This class provides array-shapes for configuring the services and bundles of an application.
  7. *
  8. * Services declared with the config() method below are autowired and autoconfigured by default.
  9. *
  10. * This is for apps only. Bundles SHOULD NOT use it.
  11. *
  12. * Example:
  13. *
  14. * ```php
  15. * // config/services.php
  16. * namespace Symfony\Component\DependencyInjection\Loader\Configurator;
  17. *
  18. * return App::config([
  19. * 'services' => [
  20. * 'App\\' => [
  21. * 'resource' => '../src/',
  22. * ],
  23. * ],
  24. * ]);
  25. * ```
  26. *
  27. * @psalm-type ImportsConfig = list<string|array{
  28. * resource: string,
  29. * type?: string|null,
  30. * ignore_errors?: bool,
  31. * }>
  32. * @psalm-type ParametersConfig = array<string, scalar|\UnitEnum|array<scalar|\UnitEnum|array<mixed>|Param|null>|Param|null>
  33. * @psalm-type ArgumentsType = list<mixed>|array<string, mixed>
  34. * @psalm-type CallType = array<string, ArgumentsType>|array{0:string, 1?:ArgumentsType, 2?:bool}|array{method:string, arguments?:ArgumentsType, returns_clone?:bool}
  35. * @psalm-type TagsType = list<string|array<string, array<string, mixed>>> // arrays inside the list must have only one element, with the tag name as the key
  36. * @psalm-type CallbackType = string|array{0:string|ReferenceConfigurator,1:string}|\Closure|ReferenceConfigurator|ExpressionConfigurator
  37. * @psalm-type DeprecationType = array{package: string, version: string, message?: string}
  38. * @psalm-type DefaultsType = array{
  39. * public?: bool,
  40. * tags?: TagsType,
  41. * resource_tags?: TagsType,
  42. * autowire?: bool,
  43. * autoconfigure?: bool,
  44. * bind?: array<string, mixed>,
  45. * }
  46. * @psalm-type InstanceofType = array{
  47. * shared?: bool,
  48. * lazy?: bool|string,
  49. * public?: bool,
  50. * properties?: array<string, mixed>,
  51. * configurator?: CallbackType,
  52. * calls?: list<CallType>,
  53. * tags?: TagsType,
  54. * resource_tags?: TagsType,
  55. * autowire?: bool,
  56. * bind?: array<string, mixed>,
  57. * constructor?: string,
  58. * }
  59. * @psalm-type DefinitionType = array{
  60. * class?: string,
  61. * file?: string,
  62. * parent?: string,
  63. * shared?: bool,
  64. * synthetic?: bool,
  65. * lazy?: bool|string,
  66. * public?: bool,
  67. * abstract?: bool,
  68. * deprecated?: DeprecationType,
  69. * factory?: CallbackType,
  70. * configurator?: CallbackType,
  71. * arguments?: ArgumentsType,
  72. * properties?: array<string, mixed>,
  73. * calls?: list<CallType>,
  74. * tags?: TagsType,
  75. * resource_tags?: TagsType,
  76. * decorates?: string,
  77. * decoration_inner_name?: string,
  78. * decoration_priority?: int,
  79. * decoration_on_invalid?: 'exception'|'ignore'|null,
  80. * autowire?: bool,
  81. * autoconfigure?: bool,
  82. * bind?: array<string, mixed>,
  83. * constructor?: string,
  84. * from_callable?: CallbackType,
  85. * }
  86. * @psalm-type AliasType = string|array{
  87. * alias: string,
  88. * public?: bool,
  89. * deprecated?: DeprecationType,
  90. * }
  91. * @psalm-type PrototypeType = array{
  92. * resource: string,
  93. * namespace?: string,
  94. * exclude?: string|list<string>,
  95. * parent?: string,
  96. * shared?: bool,
  97. * lazy?: bool|string,
  98. * public?: bool,
  99. * abstract?: bool,
  100. * deprecated?: DeprecationType,
  101. * factory?: CallbackType,
  102. * arguments?: ArgumentsType,
  103. * properties?: array<string, mixed>,
  104. * configurator?: CallbackType,
  105. * calls?: list<CallType>,
  106. * tags?: TagsType,
  107. * resource_tags?: TagsType,
  108. * autowire?: bool,
  109. * autoconfigure?: bool,
  110. * bind?: array<string, mixed>,
  111. * constructor?: string,
  112. * }
  113. * @psalm-type StackType = array{
  114. * stack: list<DefinitionType|AliasType|PrototypeType|array<class-string, ArgumentsType|null>>,
  115. * public?: bool,
  116. * deprecated?: DeprecationType,
  117. * }
  118. * @psalm-type ServicesConfig = array{
  119. * _defaults?: DefaultsType,
  120. * _instanceof?: InstanceofType,
  121. * ...<string, DefinitionType|AliasType|PrototypeType|StackType|ArgumentsType|null>
  122. * }
  123. * @psalm-type ExtensionType = array<string, mixed>
  124. * @psalm-type FrameworkConfig = array{
  125. * secret?: scalar|Param|null,
  126. * http_method_override?: bool|Param, // Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. // Default: false
  127. * allowed_http_method_override?: list<string|Param>|null,
  128. * trust_x_sendfile_type_header?: scalar|Param|null, // Set true to enable support for xsendfile in binary file responses. // Default: "%env(bool:default::SYMFONY_TRUST_X_SENDFILE_TYPE_HEADER)%"
  129. * ide?: scalar|Param|null, // Default: "%env(default::SYMFONY_IDE)%"
  130. * test?: bool|Param,
  131. * default_locale?: scalar|Param|null, // Default: "en"
  132. * set_locale_from_accept_language?: bool|Param, // Whether to use the Accept-Language HTTP header to set the Request locale (only when the "_locale" request attribute is not passed). // Default: false
  133. * set_content_language_from_locale?: bool|Param, // Whether to set the Content-Language HTTP header on the Response using the Request locale. // Default: false
  134. * enabled_locales?: list<scalar|Param|null>,
  135. * trusted_hosts?: list<scalar|Param|null>,
  136. * trusted_proxies?: mixed, // Default: ["%env(default::SYMFONY_TRUSTED_PROXIES)%"]
  137. * trusted_headers?: list<scalar|Param|null>,
  138. * error_controller?: scalar|Param|null, // Default: "error_controller"
  139. * handle_all_throwables?: bool|Param, // HttpKernel will handle all kinds of \Throwable. // Default: true
  140. * csrf_protection?: bool|array{
  141. * enabled?: scalar|Param|null, // Default: null
  142. * stateless_token_ids?: list<scalar|Param|null>,
  143. * check_header?: scalar|Param|null, // Whether to check the CSRF token in a header in addition to a cookie when using stateless protection. // Default: false
  144. * cookie_name?: scalar|Param|null, // The name of the cookie to use when using stateless protection. // Default: "csrf-token"
  145. * },
  146. * form?: bool|array{ // Form configuration
  147. * enabled?: bool|Param, // Default: true
  148. * csrf_protection?: bool|array{
  149. * enabled?: scalar|Param|null, // Default: null
  150. * token_id?: scalar|Param|null, // Default: null
  151. * field_name?: scalar|Param|null, // Default: "_token"
  152. * field_attr?: array<string, scalar|Param|null>,
  153. * },
  154. * },
  155. * http_cache?: bool|array{ // HTTP cache configuration
  156. * enabled?: bool|Param, // Default: false
  157. * debug?: bool|Param, // Default: "%kernel.debug%"
  158. * trace_level?: "none"|"short"|"full"|Param,
  159. * trace_header?: scalar|Param|null,
  160. * default_ttl?: int|Param,
  161. * private_headers?: list<scalar|Param|null>,
  162. * skip_response_headers?: list<scalar|Param|null>,
  163. * allow_reload?: bool|Param,
  164. * allow_revalidate?: bool|Param,
  165. * stale_while_revalidate?: int|Param,
  166. * stale_if_error?: int|Param,
  167. * terminate_on_cache_hit?: bool|Param,
  168. * },
  169. * esi?: bool|array{ // ESI configuration
  170. * enabled?: bool|Param, // Default: false
  171. * },
  172. * ssi?: bool|array{ // SSI configuration
  173. * enabled?: bool|Param, // Default: false
  174. * },
  175. * fragments?: bool|array{ // Fragments configuration
  176. * enabled?: bool|Param, // Default: false
  177. * hinclude_default_template?: scalar|Param|null, // Default: null
  178. * path?: scalar|Param|null, // Default: "/_fragment"
  179. * },
  180. * profiler?: bool|array{ // Profiler configuration
  181. * enabled?: bool|Param, // Default: false
  182. * collect?: bool|Param, // Default: true
  183. * collect_parameter?: scalar|Param|null, // The name of the parameter to use to enable or disable collection on a per request basis. // Default: null
  184. * only_exceptions?: bool|Param, // Default: false
  185. * only_main_requests?: bool|Param, // Default: false
  186. * dsn?: scalar|Param|null, // Default: "file:%kernel.cache_dir%/profiler"
  187. * collect_serializer_data?: bool|Param, // Enables the serializer data collector and profiler panel. // Default: false
  188. * },
  189. * workflows?: bool|array{
  190. * enabled?: bool|Param, // Default: false
  191. * workflows?: array<string, array{ // Default: []
  192. * audit_trail?: bool|array{
  193. * enabled?: bool|Param, // Default: false
  194. * },
  195. * type?: "workflow"|"state_machine"|Param, // Default: "state_machine"
  196. * marking_store?: array{
  197. * type?: "method"|Param,
  198. * property?: scalar|Param|null,
  199. * service?: scalar|Param|null,
  200. * },
  201. * supports?: list<scalar|Param|null>,
  202. * definition_validators?: list<scalar|Param|null>,
  203. * support_strategy?: scalar|Param|null,
  204. * initial_marking?: list<scalar|Param|null>,
  205. * events_to_dispatch?: list<string|Param>|null,
  206. * places?: list<array{ // Default: []
  207. * name?: scalar|Param|null,
  208. * metadata?: array<string, mixed>,
  209. * }>,
  210. * transitions?: list<array{ // Default: []
  211. * name?: string|Param,
  212. * guard?: string|Param, // An expression to block the transition.
  213. * from?: list<array{ // Default: []
  214. * place?: string|Param,
  215. * weight?: int|Param, // Default: 1
  216. * }>,
  217. * to?: list<array{ // Default: []
  218. * place?: string|Param,
  219. * weight?: int|Param, // Default: 1
  220. * }>,
  221. * weight?: int|Param, // Default: 1
  222. * metadata?: array<string, mixed>,
  223. * }>,
  224. * metadata?: array<string, mixed>,
  225. * }>,
  226. * },
  227. * router?: bool|array{ // Router configuration
  228. * enabled?: bool|Param, // Default: false
  229. * resource?: scalar|Param|null,
  230. * type?: scalar|Param|null,
  231. * cache_dir?: scalar|Param|null, // Deprecated: Setting the "framework.router.cache_dir.cache_dir" configuration option is deprecated. It will be removed in version 8.0. // Default: "%kernel.build_dir%"
  232. * default_uri?: scalar|Param|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null
  233. * http_port?: scalar|Param|null, // Default: 80
  234. * https_port?: scalar|Param|null, // Default: 443
  235. * strict_requirements?: scalar|Param|null, // set to true to throw an exception when a parameter does not match the requirements set to false to disable exceptions when a parameter does not match the requirements (and return null instead) set to null to disable parameter checks against requirements 'true' is the preferred configuration in development mode, while 'false' or 'null' might be preferred in production // Default: true
  236. * utf8?: bool|Param, // Default: true
  237. * },
  238. * session?: bool|array{ // Session configuration
  239. * enabled?: bool|Param, // Default: false
  240. * storage_factory_id?: scalar|Param|null, // Default: "session.storage.factory.native"
  241. * handler_id?: scalar|Param|null, // Defaults to using the native session handler, or to the native *file* session handler if "save_path" is not null.
  242. * name?: scalar|Param|null,
  243. * cookie_lifetime?: scalar|Param|null,
  244. * cookie_path?: scalar|Param|null,
  245. * cookie_domain?: scalar|Param|null,
  246. * cookie_secure?: true|false|"auto"|Param, // Default: "auto"
  247. * cookie_httponly?: bool|Param, // Default: true
  248. * cookie_samesite?: null|"lax"|"strict"|"none"|Param, // Default: "lax"
  249. * use_cookies?: bool|Param,
  250. * gc_divisor?: scalar|Param|null,
  251. * gc_probability?: scalar|Param|null,
  252. * gc_maxlifetime?: scalar|Param|null,
  253. * save_path?: scalar|Param|null, // Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null.
  254. * metadata_update_threshold?: int|Param, // Seconds to wait between 2 session metadata updates. // Default: 0
  255. * sid_length?: int|Param, // Deprecated: Setting the "framework.session.sid_length.sid_length" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
  256. * sid_bits_per_character?: int|Param, // Deprecated: Setting the "framework.session.sid_bits_per_character.sid_bits_per_character" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
  257. * },
  258. * request?: bool|array{ // Request configuration
  259. * enabled?: bool|Param, // Default: false
  260. * formats?: array<string, string|list<scalar|Param|null>>,
  261. * },
  262. * assets?: bool|array{ // Assets configuration
  263. * enabled?: bool|Param, // Default: true
  264. * strict_mode?: bool|Param, // Throw an exception if an entry is missing from the manifest.json. // Default: false
  265. * version_strategy?: scalar|Param|null, // Default: null
  266. * version?: scalar|Param|null, // Default: null
  267. * version_format?: scalar|Param|null, // Default: "%%s?%%s"
  268. * json_manifest_path?: scalar|Param|null, // Default: null
  269. * base_path?: scalar|Param|null, // Default: ""
  270. * base_urls?: list<scalar|Param|null>,
  271. * packages?: array<string, array{ // Default: []
  272. * strict_mode?: bool|Param, // Throw an exception if an entry is missing from the manifest.json. // Default: false
  273. * version_strategy?: scalar|Param|null, // Default: null
  274. * version?: scalar|Param|null,
  275. * version_format?: scalar|Param|null, // Default: null
  276. * json_manifest_path?: scalar|Param|null, // Default: null
  277. * base_path?: scalar|Param|null, // Default: ""
  278. * base_urls?: list<scalar|Param|null>,
  279. * }>,
  280. * },
  281. * asset_mapper?: bool|array{ // Asset Mapper configuration
  282. * enabled?: bool|Param, // Default: true
  283. * paths?: array<string, scalar|Param|null>,
  284. * excluded_patterns?: list<scalar|Param|null>,
  285. * exclude_dotfiles?: bool|Param, // If true, any files starting with "." will be excluded from the asset mapper. // Default: true
  286. * server?: bool|Param, // If true, a "dev server" will return the assets from the public directory (true in "debug" mode only by default). // Default: true
  287. * public_prefix?: scalar|Param|null, // The public path where the assets will be written to (and served from when "server" is true). // Default: "/assets/"
  288. * missing_import_mode?: "strict"|"warn"|"ignore"|Param, // Behavior if an asset cannot be found when imported from JavaScript or CSS files - e.g. "import './non-existent.js'". "strict" means an exception is thrown, "warn" means a warning is logged, "ignore" means the import is left as-is. // Default: "warn"
  289. * extensions?: array<string, scalar|Param|null>,
  290. * importmap_path?: scalar|Param|null, // The path of the importmap.php file. // Default: "%kernel.project_dir%/importmap.php"
  291. * importmap_polyfill?: scalar|Param|null, // The importmap name that will be used to load the polyfill. Set to false to disable. // Default: "es-module-shims"
  292. * importmap_script_attributes?: array<string, scalar|Param|null>,
  293. * vendor_dir?: scalar|Param|null, // The directory to store JavaScript vendors. // Default: "%kernel.project_dir%/assets/vendor"
  294. * precompress?: bool|array{ // Precompress assets with Brotli, Zstandard and gzip.
  295. * enabled?: bool|Param, // Default: false
  296. * formats?: list<scalar|Param|null>,
  297. * extensions?: list<scalar|Param|null>,
  298. * },
  299. * },
  300. * translator?: bool|array{ // Translator configuration
  301. * enabled?: bool|Param, // Default: true
  302. * fallbacks?: list<scalar|Param|null>,
  303. * logging?: bool|Param, // Default: false
  304. * formatter?: scalar|Param|null, // Default: "translator.formatter.default"
  305. * cache_dir?: scalar|Param|null, // Default: "%kernel.cache_dir%/translations"
  306. * default_path?: scalar|Param|null, // The default path used to load translations. // Default: "%kernel.project_dir%/translations"
  307. * paths?: list<scalar|Param|null>,
  308. * pseudo_localization?: bool|array{
  309. * enabled?: bool|Param, // Default: false
  310. * accents?: bool|Param, // Default: true
  311. * expansion_factor?: float|Param, // Default: 1.0
  312. * brackets?: bool|Param, // Default: true
  313. * parse_html?: bool|Param, // Default: false
  314. * localizable_html_attributes?: list<scalar|Param|null>,
  315. * },
  316. * providers?: array<string, array{ // Default: []
  317. * dsn?: scalar|Param|null,
  318. * domains?: list<scalar|Param|null>,
  319. * locales?: list<scalar|Param|null>,
  320. * }>,
  321. * globals?: array<string, string|array{ // Default: []
  322. * value?: mixed,
  323. * message?: string|Param,
  324. * parameters?: array<string, scalar|Param|null>,
  325. * domain?: string|Param,
  326. * }>,
  327. * },
  328. * validation?: bool|array{ // Validation configuration
  329. * enabled?: bool|Param, // Default: true
  330. * cache?: scalar|Param|null, // Deprecated: Setting the "framework.validation.cache.cache" configuration option is deprecated. It will be removed in version 8.0.
  331. * enable_attributes?: bool|Param, // Default: true
  332. * static_method?: list<scalar|Param|null>,
  333. * translation_domain?: scalar|Param|null, // Default: "validators"
  334. * email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict"|"loose"|Param, // Default: "html5"
  335. * mapping?: array{
  336. * paths?: list<scalar|Param|null>,
  337. * },
  338. * not_compromised_password?: bool|array{
  339. * enabled?: bool|Param, // When disabled, compromised passwords will be accepted as valid. // Default: true
  340. * endpoint?: scalar|Param|null, // API endpoint for the NotCompromisedPassword Validator. // Default: null
  341. * },
  342. * disable_translation?: bool|Param, // Default: false
  343. * auto_mapping?: array<string, array{ // Default: []
  344. * services?: list<scalar|Param|null>,
  345. * }>,
  346. * },
  347. * annotations?: bool|array{
  348. * enabled?: bool|Param, // Default: false
  349. * },
  350. * serializer?: bool|array{ // Serializer configuration
  351. * enabled?: bool|Param, // Default: true
  352. * enable_attributes?: bool|Param, // Default: true
  353. * name_converter?: scalar|Param|null,
  354. * circular_reference_handler?: scalar|Param|null,
  355. * max_depth_handler?: scalar|Param|null,
  356. * mapping?: array{
  357. * paths?: list<scalar|Param|null>,
  358. * },
  359. * default_context?: array<string, mixed>,
  360. * named_serializers?: array<string, array{ // Default: []
  361. * name_converter?: scalar|Param|null,
  362. * default_context?: array<string, mixed>,
  363. * include_built_in_normalizers?: bool|Param, // Whether to include the built-in normalizers // Default: true
  364. * include_built_in_encoders?: bool|Param, // Whether to include the built-in encoders // Default: true
  365. * }>,
  366. * },
  367. * property_access?: bool|array{ // Property access configuration
  368. * enabled?: bool|Param, // Default: true
  369. * magic_call?: bool|Param, // Default: false
  370. * magic_get?: bool|Param, // Default: true
  371. * magic_set?: bool|Param, // Default: true
  372. * throw_exception_on_invalid_index?: bool|Param, // Default: false
  373. * throw_exception_on_invalid_property_path?: bool|Param, // Default: true
  374. * },
  375. * type_info?: bool|array{ // Type info configuration
  376. * enabled?: bool|Param, // Default: true
  377. * aliases?: array<string, scalar|Param|null>,
  378. * },
  379. * property_info?: bool|array{ // Property info configuration
  380. * enabled?: bool|Param, // Default: true
  381. * with_constructor_extractor?: bool|Param, // Registers the constructor extractor.
  382. * },
  383. * cache?: array{ // Cache configuration
  384. * prefix_seed?: scalar|Param|null, // Used to namespace cache keys when using several apps with the same shared backend. // Default: "_%kernel.project_dir%.%kernel.container_class%"
  385. * app?: scalar|Param|null, // App related cache pools configuration. // Default: "cache.adapter.filesystem"
  386. * system?: scalar|Param|null, // System related cache pools configuration. // Default: "cache.adapter.system"
  387. * directory?: scalar|Param|null, // Default: "%kernel.share_dir%/pools/app"
  388. * default_psr6_provider?: scalar|Param|null,
  389. * default_redis_provider?: scalar|Param|null, // Default: "redis://localhost"
  390. * default_valkey_provider?: scalar|Param|null, // Default: "valkey://localhost"
  391. * default_memcached_provider?: scalar|Param|null, // Default: "memcached://localhost"
  392. * default_doctrine_dbal_provider?: scalar|Param|null, // Default: "database_connection"
  393. * default_pdo_provider?: scalar|Param|null, // Default: null
  394. * pools?: array<string, array{ // Default: []
  395. * adapters?: list<scalar|Param|null>,
  396. * tags?: scalar|Param|null, // Default: null
  397. * public?: bool|Param, // Default: false
  398. * default_lifetime?: scalar|Param|null, // Default lifetime of the pool.
  399. * provider?: scalar|Param|null, // Overwrite the setting from the default provider for this adapter.
  400. * early_expiration_message_bus?: scalar|Param|null,
  401. * clearer?: scalar|Param|null,
  402. * }>,
  403. * },
  404. * php_errors?: array{ // PHP errors handling configuration
  405. * log?: mixed, // Use the application logger instead of the PHP logger for logging PHP errors. // Default: true
  406. * throw?: bool|Param, // Throw PHP errors as \ErrorException instances. // Default: true
  407. * },
  408. * exceptions?: array<string, array{ // Default: []
  409. * log_level?: scalar|Param|null, // The level of log message. Null to let Symfony decide. // Default: null
  410. * status_code?: scalar|Param|null, // The status code of the response. Null or 0 to let Symfony decide. // Default: null
  411. * log_channel?: scalar|Param|null, // The channel of log message. Null to let Symfony decide. // Default: null
  412. * }>,
  413. * web_link?: bool|array{ // Web links configuration
  414. * enabled?: bool|Param, // Default: true
  415. * },
  416. * lock?: bool|string|array{ // Lock configuration
  417. * enabled?: bool|Param, // Default: false
  418. * resources?: array<string, string|list<scalar|Param|null>>,
  419. * },
  420. * semaphore?: bool|string|array{ // Semaphore configuration
  421. * enabled?: bool|Param, // Default: false
  422. * resources?: array<string, scalar|Param|null>,
  423. * },
  424. * messenger?: bool|array{ // Messenger configuration
  425. * enabled?: bool|Param, // Default: true
  426. * routing?: array<string, string|array{ // Default: []
  427. * senders?: list<scalar|Param|null>,
  428. * }>,
  429. * serializer?: array{
  430. * default_serializer?: scalar|Param|null, // Service id to use as the default serializer for the transports. // Default: "messenger.transport.native_php_serializer"
  431. * symfony_serializer?: array{
  432. * format?: scalar|Param|null, // Serialization format for the messenger.transport.symfony_serializer service (which is not the serializer used by default). // Default: "json"
  433. * context?: array<string, mixed>,
  434. * },
  435. * },
  436. * transports?: array<string, string|array{ // Default: []
  437. * dsn?: scalar|Param|null,
  438. * serializer?: scalar|Param|null, // Service id of a custom serializer to use. // Default: null
  439. * options?: array<string, mixed>,
  440. * failure_transport?: scalar|Param|null, // Transport name to send failed messages to (after all retries have failed). // Default: null
  441. * retry_strategy?: string|array{
  442. * service?: scalar|Param|null, // Service id to override the retry strategy entirely. // Default: null
  443. * max_retries?: int|Param, // Default: 3
  444. * delay?: int|Param, // Time in ms to delay (or the initial value when multiplier is used). // Default: 1000
  445. * multiplier?: float|Param, // If greater than 1, delay will grow exponentially for each retry: this delay = (delay * (multiple ^ retries)). // Default: 2
  446. * max_delay?: int|Param, // Max time in ms that a retry should ever be delayed (0 = infinite). // Default: 0
  447. * jitter?: float|Param, // Randomness to apply to the delay (between 0 and 1). // Default: 0.1
  448. * },
  449. * rate_limiter?: scalar|Param|null, // Rate limiter name to use when processing messages. // Default: null
  450. * }>,
  451. * failure_transport?: scalar|Param|null, // Transport name to send failed messages to (after all retries have failed). // Default: null
  452. * stop_worker_on_signals?: list<scalar|Param|null>,
  453. * default_bus?: scalar|Param|null, // Default: null
  454. * buses?: array<string, array{ // Default: {"messenger.bus.default":{"default_middleware":{"enabled":true,"allow_no_handlers":false,"allow_no_senders":true},"middleware":[]}}
  455. * default_middleware?: bool|string|array{
  456. * enabled?: bool|Param, // Default: true
  457. * allow_no_handlers?: bool|Param, // Default: false
  458. * allow_no_senders?: bool|Param, // Default: true
  459. * },
  460. * middleware?: list<string|array{ // Default: []
  461. * id?: scalar|Param|null,
  462. * arguments?: list<mixed>,
  463. * }>,
  464. * }>,
  465. * },
  466. * scheduler?: bool|array{ // Scheduler configuration
  467. * enabled?: bool|Param, // Default: false
  468. * },
  469. * disallow_search_engine_index?: bool|Param, // Enabled by default when debug is enabled. // Default: true
  470. * http_client?: bool|array{ // HTTP Client configuration
  471. * enabled?: bool|Param, // Default: true
  472. * max_host_connections?: int|Param, // The maximum number of connections to a single host.
  473. * default_options?: array{
  474. * headers?: array<string, mixed>,
  475. * vars?: array<string, mixed>,
  476. * max_redirects?: int|Param, // The maximum number of redirects to follow.
  477. * http_version?: scalar|Param|null, // The default HTTP version, typically 1.1 or 2.0, leave to null for the best version.
  478. * resolve?: array<string, scalar|Param|null>,
  479. * proxy?: scalar|Param|null, // The URL of the proxy to pass requests through or null for automatic detection.
  480. * no_proxy?: scalar|Param|null, // A comma separated list of hosts that do not require a proxy to be reached.
  481. * timeout?: float|Param, // The idle timeout, defaults to the "default_socket_timeout" ini parameter.
  482. * max_duration?: float|Param, // The maximum execution time for the request+response as a whole.
  483. * bindto?: scalar|Param|null, // A network interface name, IP address, a host name or a UNIX socket to bind to.
  484. * verify_peer?: bool|Param, // Indicates if the peer should be verified in a TLS context.
  485. * verify_host?: bool|Param, // Indicates if the host should exist as a certificate common name.
  486. * cafile?: scalar|Param|null, // A certificate authority file.
  487. * capath?: scalar|Param|null, // A directory that contains multiple certificate authority files.
  488. * local_cert?: scalar|Param|null, // A PEM formatted certificate file.
  489. * local_pk?: scalar|Param|null, // A private key file.
  490. * passphrase?: scalar|Param|null, // The passphrase used to encrypt the "local_pk" file.
  491. * ciphers?: scalar|Param|null, // A list of TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...)
  492. * peer_fingerprint?: array{ // Associative array: hashing algorithm => hash(es).
  493. * sha1?: mixed,
  494. * pin-sha256?: mixed,
  495. * md5?: mixed,
  496. * },
  497. * crypto_method?: scalar|Param|null, // The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
  498. * extra?: array<string, mixed>,
  499. * rate_limiter?: scalar|Param|null, // Rate limiter name to use for throttling requests. // Default: null
  500. * caching?: bool|array{ // Caching configuration.
  501. * enabled?: bool|Param, // Default: false
  502. * cache_pool?: string|Param, // The taggable cache pool to use for storing the responses. // Default: "cache.http_client"
  503. * shared?: bool|Param, // Indicates whether the cache is shared (public) or private. // Default: true
  504. * max_ttl?: int|Param, // The maximum TTL (in seconds) allowed for cached responses. Null means no cap. // Default: null
  505. * },
  506. * retry_failed?: bool|array{
  507. * enabled?: bool|Param, // Default: false
  508. * retry_strategy?: scalar|Param|null, // service id to override the retry strategy. // Default: null
  509. * http_codes?: array<string, array{ // Default: []
  510. * code?: int|Param,
  511. * methods?: list<string|Param>,
  512. * }>,
  513. * max_retries?: int|Param, // Default: 3
  514. * delay?: int|Param, // Time in ms to delay (or the initial value when multiplier is used). // Default: 1000
  515. * multiplier?: float|Param, // If greater than 1, delay will grow exponentially for each retry: delay * (multiple ^ retries). // Default: 2
  516. * max_delay?: int|Param, // Max time in ms that a retry should ever be delayed (0 = infinite). // Default: 0
  517. * jitter?: float|Param, // Randomness in percent (between 0 and 1) to apply to the delay. // Default: 0.1
  518. * },
  519. * },
  520. * mock_response_factory?: scalar|Param|null, // The id of the service that should generate mock responses. It should be either an invokable or an iterable.
  521. * scoped_clients?: array<string, string|array{ // Default: []
  522. * scope?: scalar|Param|null, // The regular expression that the request URL must match before adding the other options. When none is provided, the base URI is used instead.
  523. * base_uri?: scalar|Param|null, // The URI to resolve relative URLs, following rules in RFC 3985, section 2.
  524. * auth_basic?: scalar|Param|null, // An HTTP Basic authentication "username:password".
  525. * auth_bearer?: scalar|Param|null, // A token enabling HTTP Bearer authorization.
  526. * auth_ntlm?: scalar|Param|null, // A "username:password" pair to use Microsoft NTLM authentication (requires the cURL extension).
  527. * query?: array<string, scalar|Param|null>,
  528. * headers?: array<string, mixed>,
  529. * max_redirects?: int|Param, // The maximum number of redirects to follow.
  530. * http_version?: scalar|Param|null, // The default HTTP version, typically 1.1 or 2.0, leave to null for the best version.
  531. * resolve?: array<string, scalar|Param|null>,
  532. * proxy?: scalar|Param|null, // The URL of the proxy to pass requests through or null for automatic detection.
  533. * no_proxy?: scalar|Param|null, // A comma separated list of hosts that do not require a proxy to be reached.
  534. * timeout?: float|Param, // The idle timeout, defaults to the "default_socket_timeout" ini parameter.
  535. * max_duration?: float|Param, // The maximum execution time for the request+response as a whole.
  536. * bindto?: scalar|Param|null, // A network interface name, IP address, a host name or a UNIX socket to bind to.
  537. * verify_peer?: bool|Param, // Indicates if the peer should be verified in a TLS context.
  538. * verify_host?: bool|Param, // Indicates if the host should exist as a certificate common name.
  539. * cafile?: scalar|Param|null, // A certificate authority file.
  540. * capath?: scalar|Param|null, // A directory that contains multiple certificate authority files.
  541. * local_cert?: scalar|Param|null, // A PEM formatted certificate file.
  542. * local_pk?: scalar|Param|null, // A private key file.
  543. * passphrase?: scalar|Param|null, // The passphrase used to encrypt the "local_pk" file.
  544. * ciphers?: scalar|Param|null, // A list of TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...).
  545. * peer_fingerprint?: array{ // Associative array: hashing algorithm => hash(es).
  546. * sha1?: mixed,
  547. * pin-sha256?: mixed,
  548. * md5?: mixed,
  549. * },
  550. * crypto_method?: scalar|Param|null, // The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
  551. * extra?: array<string, mixed>,
  552. * rate_limiter?: scalar|Param|null, // Rate limiter name to use for throttling requests. // Default: null
  553. * caching?: bool|array{ // Caching configuration.
  554. * enabled?: bool|Param, // Default: false
  555. * cache_pool?: string|Param, // The taggable cache pool to use for storing the responses. // Default: "cache.http_client"
  556. * shared?: bool|Param, // Indicates whether the cache is shared (public) or private. // Default: true
  557. * max_ttl?: int|Param, // The maximum TTL (in seconds) allowed for cached responses. Null means no cap. // Default: null
  558. * },
  559. * retry_failed?: bool|array{
  560. * enabled?: bool|Param, // Default: false
  561. * retry_strategy?: scalar|Param|null, // service id to override the retry strategy. // Default: null
  562. * http_codes?: array<string, array{ // Default: []
  563. * code?: int|Param,
  564. * methods?: list<string|Param>,
  565. * }>,
  566. * max_retries?: int|Param, // Default: 3
  567. * delay?: int|Param, // Time in ms to delay (or the initial value when multiplier is used). // Default: 1000
  568. * multiplier?: float|Param, // If greater than 1, delay will grow exponentially for each retry: delay * (multiple ^ retries). // Default: 2
  569. * max_delay?: int|Param, // Max time in ms that a retry should ever be delayed (0 = infinite). // Default: 0
  570. * jitter?: float|Param, // Randomness in percent (between 0 and 1) to apply to the delay. // Default: 0.1
  571. * },
  572. * }>,
  573. * },
  574. * mailer?: bool|array{ // Mailer configuration
  575. * enabled?: bool|Param, // Default: true
  576. * message_bus?: scalar|Param|null, // The message bus to use. Defaults to the default bus if the Messenger component is installed. // Default: null
  577. * dsn?: scalar|Param|null, // Default: null
  578. * transports?: array<string, scalar|Param|null>,
  579. * envelope?: array{ // Mailer Envelope configuration
  580. * sender?: scalar|Param|null,
  581. * recipients?: list<scalar|Param|null>,
  582. * allowed_recipients?: list<scalar|Param|null>,
  583. * },
  584. * headers?: array<string, string|array{ // Default: []
  585. * value?: mixed,
  586. * }>,
  587. * dkim_signer?: bool|array{ // DKIM signer configuration
  588. * enabled?: bool|Param, // Default: false
  589. * key?: scalar|Param|null, // Key content, or path to key (in PEM format with the `file://` prefix) // Default: ""
  590. * domain?: scalar|Param|null, // Default: ""
  591. * select?: scalar|Param|null, // Default: ""
  592. * passphrase?: scalar|Param|null, // The private key passphrase // Default: ""
  593. * options?: array<string, mixed>,
  594. * },
  595. * smime_signer?: bool|array{ // S/MIME signer configuration
  596. * enabled?: bool|Param, // Default: false
  597. * key?: scalar|Param|null, // Path to key (in PEM format) // Default: ""
  598. * certificate?: scalar|Param|null, // Path to certificate (in PEM format without the `file://` prefix) // Default: ""
  599. * passphrase?: scalar|Param|null, // The private key passphrase // Default: null
  600. * extra_certificates?: scalar|Param|null, // Default: null
  601. * sign_options?: int|Param, // Default: null
  602. * },
  603. * smime_encrypter?: bool|array{ // S/MIME encrypter configuration
  604. * enabled?: bool|Param, // Default: false
  605. * repository?: scalar|Param|null, // S/MIME certificate repository service. This service shall implement the `Symfony\Component\Mailer\EventListener\SmimeCertificateRepositoryInterface`. // Default: ""
  606. * cipher?: int|Param, // A set of algorithms used to encrypt the message // Default: null
  607. * },
  608. * },
  609. * secrets?: bool|array{
  610. * enabled?: bool|Param, // Default: true
  611. * vault_directory?: scalar|Param|null, // Default: "%kernel.project_dir%/config/secrets/%kernel.runtime_environment%"
  612. * local_dotenv_file?: scalar|Param|null, // Default: "%kernel.project_dir%/.env.%kernel.environment%.local"
  613. * decryption_env_var?: scalar|Param|null, // Default: "base64:default::SYMFONY_DECRYPTION_SECRET"
  614. * },
  615. * notifier?: bool|array{ // Notifier configuration
  616. * enabled?: bool|Param, // Default: true
  617. * message_bus?: scalar|Param|null, // The message bus to use. Defaults to the default bus if the Messenger component is installed. // Default: null
  618. * chatter_transports?: array<string, scalar|Param|null>,
  619. * texter_transports?: array<string, scalar|Param|null>,
  620. * notification_on_failed_messages?: bool|Param, // Default: false
  621. * channel_policy?: array<string, string|list<scalar|Param|null>>,
  622. * admin_recipients?: list<array{ // Default: []
  623. * email?: scalar|Param|null,
  624. * phone?: scalar|Param|null, // Default: ""
  625. * }>,
  626. * },
  627. * rate_limiter?: bool|array{ // Rate limiter configuration
  628. * enabled?: bool|Param, // Default: false
  629. * limiters?: array<string, array{ // Default: []
  630. * lock_factory?: scalar|Param|null, // The service ID of the lock factory used by this limiter (or null to disable locking). // Default: "auto"
  631. * cache_pool?: scalar|Param|null, // The cache pool to use for storing the current limiter state. // Default: "cache.rate_limiter"
  632. * storage_service?: scalar|Param|null, // The service ID of a custom storage implementation, this precedes any configured "cache_pool". // Default: null
  633. * policy?: "fixed_window"|"token_bucket"|"sliding_window"|"compound"|"no_limit"|Param, // The algorithm to be used by this limiter.
  634. * limiters?: list<scalar|Param|null>,
  635. * limit?: int|Param, // The maximum allowed hits in a fixed interval or burst.
  636. * interval?: scalar|Param|null, // Configures the fixed interval if "policy" is set to "fixed_window" or "sliding_window". The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).
  637. * rate?: array{ // Configures the fill rate if "policy" is set to "token_bucket".
  638. * interval?: scalar|Param|null, // Configures the rate interval. The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).
  639. * amount?: int|Param, // Amount of tokens to add each interval. // Default: 1
  640. * },
  641. * }>,
  642. * },
  643. * uid?: bool|array{ // Uid configuration
  644. * enabled?: bool|Param, // Default: false
  645. * default_uuid_version?: 7|6|4|1|Param, // Default: 7
  646. * name_based_uuid_version?: 5|3|Param, // Default: 5
  647. * name_based_uuid_namespace?: scalar|Param|null,
  648. * time_based_uuid_version?: 7|6|1|Param, // Default: 7
  649. * time_based_uuid_node?: scalar|Param|null,
  650. * },
  651. * html_sanitizer?: bool|array{ // HtmlSanitizer configuration
  652. * enabled?: bool|Param, // Default: false
  653. * sanitizers?: array<string, array{ // Default: []
  654. * allow_safe_elements?: bool|Param, // Allows "safe" elements and attributes. // Default: false
  655. * allow_static_elements?: bool|Param, // Allows all static elements and attributes from the W3C Sanitizer API standard. // Default: false
  656. * allow_elements?: array<string, mixed>,
  657. * block_elements?: list<string|Param>,
  658. * drop_elements?: list<string|Param>,
  659. * allow_attributes?: array<string, mixed>,
  660. * drop_attributes?: array<string, mixed>,
  661. * force_attributes?: array<string, array<string, string|Param>>,
  662. * force_https_urls?: bool|Param, // Transforms URLs using the HTTP scheme to use the HTTPS scheme instead. // Default: false
  663. * allowed_link_schemes?: list<string|Param>,
  664. * allowed_link_hosts?: list<string|Param>|null,
  665. * allow_relative_links?: bool|Param, // Allows relative URLs to be used in links href attributes. // Default: false
  666. * allowed_media_schemes?: list<string|Param>,
  667. * allowed_media_hosts?: list<string|Param>|null,
  668. * allow_relative_medias?: bool|Param, // Allows relative URLs to be used in media source attributes (img, audio, video, ...). // Default: false
  669. * with_attribute_sanitizers?: list<string|Param>,
  670. * without_attribute_sanitizers?: list<string|Param>,
  671. * max_input_length?: int|Param, // The maximum length allowed for the sanitized input. // Default: 0
  672. * }>,
  673. * },
  674. * webhook?: bool|array{ // Webhook configuration
  675. * enabled?: bool|Param, // Default: false
  676. * message_bus?: scalar|Param|null, // The message bus to use. // Default: "messenger.default_bus"
  677. * routing?: array<string, array{ // Default: []
  678. * service?: scalar|Param|null,
  679. * secret?: scalar|Param|null, // Default: ""
  680. * }>,
  681. * },
  682. * remote-event?: bool|array{ // RemoteEvent configuration
  683. * enabled?: bool|Param, // Default: false
  684. * },
  685. * json_streamer?: bool|array{ // JSON streamer configuration
  686. * enabled?: bool|Param, // Default: false
  687. * },
  688. * }
  689. * @psalm-type DoctrineConfig = array{
  690. * dbal?: array{
  691. * default_connection?: scalar|Param|null,
  692. * types?: array<string, string|array{ // Default: []
  693. * class?: scalar|Param|null,
  694. * }>,
  695. * driver_schemes?: array<string, scalar|Param|null>,
  696. * connections?: array<string, array{ // Default: []
  697. * url?: scalar|Param|null, // A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
  698. * dbname?: scalar|Param|null,
  699. * host?: scalar|Param|null, // Defaults to "localhost" at runtime.
  700. * port?: scalar|Param|null, // Defaults to null at runtime.
  701. * user?: scalar|Param|null, // Defaults to "root" at runtime.
  702. * password?: scalar|Param|null, // Defaults to null at runtime.
  703. * dbname_suffix?: scalar|Param|null, // Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
  704. * application_name?: scalar|Param|null,
  705. * charset?: scalar|Param|null,
  706. * path?: scalar|Param|null,
  707. * memory?: bool|Param,
  708. * unix_socket?: scalar|Param|null, // The unix socket to use for MySQL
  709. * persistent?: bool|Param, // True to use as persistent connection for the ibm_db2 driver
  710. * protocol?: scalar|Param|null, // The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
  711. * service?: bool|Param, // True to use SERVICE_NAME as connection parameter instead of SID for Oracle
  712. * servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
  713. * sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
  714. * server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
  715. * default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
  716. * sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
  717. * sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
  718. * sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
  719. * sslkey?: scalar|Param|null, // The path to the SSL client key file for PostgreSQL.
  720. * sslcrl?: scalar|Param|null, // The file name of the SSL certificate revocation list for PostgreSQL.
  721. * pooled?: bool|Param, // True to use a pooled server with the oci8/pdo_oracle driver
  722. * MultipleActiveResultSets?: bool|Param, // Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
  723. * instancename?: scalar|Param|null, // Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
  724. * connectstring?: scalar|Param|null, // Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
  725. * driver?: scalar|Param|null, // Default: "pdo_mysql"
  726. * auto_commit?: bool|Param,
  727. * schema_filter?: scalar|Param|null,
  728. * logging?: bool|Param, // Default: true
  729. * profiling?: bool|Param, // Default: true
  730. * profiling_collect_backtrace?: bool|Param, // Enables collecting backtraces when profiling is enabled // Default: false
  731. * profiling_collect_schema_errors?: bool|Param, // Enables collecting schema errors when profiling is enabled // Default: true
  732. * server_version?: scalar|Param|null,
  733. * idle_connection_ttl?: int|Param, // Default: 600
  734. * driver_class?: scalar|Param|null,
  735. * wrapper_class?: scalar|Param|null,
  736. * keep_replica?: bool|Param,
  737. * options?: array<string, mixed>,
  738. * mapping_types?: array<string, scalar|Param|null>,
  739. * default_table_options?: array<string, scalar|Param|null>,
  740. * schema_manager_factory?: scalar|Param|null, // Default: "doctrine.dbal.default_schema_manager_factory"
  741. * result_cache?: scalar|Param|null,
  742. * replicas?: array<string, array{ // Default: []
  743. * url?: scalar|Param|null, // A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
  744. * dbname?: scalar|Param|null,
  745. * host?: scalar|Param|null, // Defaults to "localhost" at runtime.
  746. * port?: scalar|Param|null, // Defaults to null at runtime.
  747. * user?: scalar|Param|null, // Defaults to "root" at runtime.
  748. * password?: scalar|Param|null, // Defaults to null at runtime.
  749. * dbname_suffix?: scalar|Param|null, // Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
  750. * application_name?: scalar|Param|null,
  751. * charset?: scalar|Param|null,
  752. * path?: scalar|Param|null,
  753. * memory?: bool|Param,
  754. * unix_socket?: scalar|Param|null, // The unix socket to use for MySQL
  755. * persistent?: bool|Param, // True to use as persistent connection for the ibm_db2 driver
  756. * protocol?: scalar|Param|null, // The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
  757. * service?: bool|Param, // True to use SERVICE_NAME as connection parameter instead of SID for Oracle
  758. * servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
  759. * sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
  760. * server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
  761. * default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
  762. * sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
  763. * sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
  764. * sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
  765. * sslkey?: scalar|Param|null, // The path to the SSL client key file for PostgreSQL.
  766. * sslcrl?: scalar|Param|null, // The file name of the SSL certificate revocation list for PostgreSQL.
  767. * pooled?: bool|Param, // True to use a pooled server with the oci8/pdo_oracle driver
  768. * MultipleActiveResultSets?: bool|Param, // Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
  769. * instancename?: scalar|Param|null, // Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
  770. * connectstring?: scalar|Param|null, // Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
  771. * }>,
  772. * }>,
  773. * },
  774. * orm?: array{
  775. * default_entity_manager?: scalar|Param|null,
  776. * enable_native_lazy_objects?: bool|Param, // Deprecated: The "enable_native_lazy_objects" option is deprecated and will be removed in DoctrineBundle 4.0, as native lazy objects are now always enabled. // Default: true
  777. * controller_resolver?: bool|array{
  778. * enabled?: bool|Param, // Default: true
  779. * auto_mapping?: bool|Param, // Deprecated: The "doctrine.orm.controller_resolver.auto_mapping.auto_mapping" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0. // Set to true to enable using route placeholders as lookup criteria when the primary key doesn't match the argument name // Default: false
  780. * evict_cache?: bool|Param, // Set to true to fetch the entity from the database instead of using the cache, if any // Default: false
  781. * },
  782. * entity_managers?: array<string, array{ // Default: []
  783. * query_cache_driver?: string|array{
  784. * type?: scalar|Param|null, // Default: null
  785. * id?: scalar|Param|null,
  786. * pool?: scalar|Param|null,
  787. * },
  788. * metadata_cache_driver?: string|array{
  789. * type?: scalar|Param|null, // Default: null
  790. * id?: scalar|Param|null,
  791. * pool?: scalar|Param|null,
  792. * },
  793. * result_cache_driver?: string|array{
  794. * type?: scalar|Param|null, // Default: null
  795. * id?: scalar|Param|null,
  796. * pool?: scalar|Param|null,
  797. * },
  798. * entity_listeners?: array{
  799. * entities?: array<string, array{ // Default: []
  800. * listeners?: array<string, array{ // Default: []
  801. * events?: list<array{ // Default: []
  802. * type?: scalar|Param|null,
  803. * method?: scalar|Param|null, // Default: null
  804. * }>,
  805. * }>,
  806. * }>,
  807. * },
  808. * connection?: scalar|Param|null,
  809. * class_metadata_factory_name?: scalar|Param|null, // Default: "Doctrine\\ORM\\Mapping\\ClassMetadataFactory"
  810. * default_repository_class?: scalar|Param|null, // Default: "Doctrine\\ORM\\EntityRepository"
  811. * auto_mapping?: scalar|Param|null, // Default: false
  812. * naming_strategy?: scalar|Param|null, // Default: "doctrine.orm.naming_strategy.default"
  813. * quote_strategy?: scalar|Param|null, // Default: "doctrine.orm.quote_strategy.default"
  814. * typed_field_mapper?: scalar|Param|null, // Default: "doctrine.orm.typed_field_mapper.default"
  815. * entity_listener_resolver?: scalar|Param|null, // Default: null
  816. * fetch_mode_subselect_batch_size?: scalar|Param|null,
  817. * repository_factory?: scalar|Param|null, // Default: "doctrine.orm.container_repository_factory"
  818. * schema_ignore_classes?: list<scalar|Param|null>,
  819. * validate_xml_mapping?: bool|Param, // Set to "true" to opt-in to the new mapping driver mode that was added in Doctrine ORM 2.14 and will be mandatory in ORM 3.0. See https://github.com/doctrine/orm/pull/6728. // Default: false
  820. * second_level_cache?: array{
  821. * region_cache_driver?: string|array{
  822. * type?: scalar|Param|null, // Default: null
  823. * id?: scalar|Param|null,
  824. * pool?: scalar|Param|null,
  825. * },
  826. * region_lock_lifetime?: scalar|Param|null, // Default: 60
  827. * log_enabled?: bool|Param, // Default: true
  828. * region_lifetime?: scalar|Param|null, // Default: 3600
  829. * enabled?: bool|Param, // Default: true
  830. * factory?: scalar|Param|null,
  831. * regions?: array<string, array{ // Default: []
  832. * cache_driver?: string|array{
  833. * type?: scalar|Param|null, // Default: null
  834. * id?: scalar|Param|null,
  835. * pool?: scalar|Param|null,
  836. * },
  837. * lock_path?: scalar|Param|null, // Default: "%kernel.cache_dir%/doctrine/orm/slc/filelock"
  838. * lock_lifetime?: scalar|Param|null, // Default: 60
  839. * type?: scalar|Param|null, // Default: "default"
  840. * lifetime?: scalar|Param|null, // Default: 0
  841. * service?: scalar|Param|null,
  842. * name?: scalar|Param|null,
  843. * }>,
  844. * loggers?: array<string, array{ // Default: []
  845. * name?: scalar|Param|null,
  846. * service?: scalar|Param|null,
  847. * }>,
  848. * },
  849. * hydrators?: array<string, scalar|Param|null>,
  850. * mappings?: array<string, bool|string|array{ // Default: []
  851. * mapping?: scalar|Param|null, // Default: true
  852. * type?: scalar|Param|null,
  853. * dir?: scalar|Param|null,
  854. * alias?: scalar|Param|null,
  855. * prefix?: scalar|Param|null,
  856. * is_bundle?: bool|Param,
  857. * }>,
  858. * dql?: array{
  859. * string_functions?: array<string, scalar|Param|null>,
  860. * numeric_functions?: array<string, scalar|Param|null>,
  861. * datetime_functions?: array<string, scalar|Param|null>,
  862. * },
  863. * filters?: array<string, string|array{ // Default: []
  864. * class?: scalar|Param|null,
  865. * enabled?: bool|Param, // Default: false
  866. * parameters?: array<string, mixed>,
  867. * }>,
  868. * identity_generation_preferences?: array<string, scalar|Param|null>,
  869. * }>,
  870. * resolve_target_entities?: array<string, scalar|Param|null>,
  871. * },
  872. * }
  873. * @psalm-type DoctrineMigrationsConfig = array{
  874. * enable_service_migrations?: bool|Param, // Whether to enable fetching migrations from the service container. // Default: false
  875. * migrations_paths?: array<string, scalar|Param|null>,
  876. * services?: array<string, scalar|Param|null>,
  877. * factories?: array<string, scalar|Param|null>,
  878. * storage?: array{ // Storage to use for migration status metadata.
  879. * table_storage?: array{ // The default metadata storage, implemented as a table in the database.
  880. * table_name?: scalar|Param|null, // Default: null
  881. * version_column_name?: scalar|Param|null, // Default: null
  882. * version_column_length?: scalar|Param|null, // Default: null
  883. * executed_at_column_name?: scalar|Param|null, // Default: null
  884. * execution_time_column_name?: scalar|Param|null, // Default: null
  885. * },
  886. * },
  887. * migrations?: list<scalar|Param|null>,
  888. * connection?: scalar|Param|null, // Connection name to use for the migrations database. // Default: null
  889. * em?: scalar|Param|null, // Entity manager name to use for the migrations database (available when doctrine/orm is installed). // Default: null
  890. * all_or_nothing?: scalar|Param|null, // Run all migrations in a transaction. // Default: false
  891. * check_database_platform?: scalar|Param|null, // Adds an extra check in the generated migrations to allow execution only on the same platform as they were initially generated on. // Default: true
  892. * custom_template?: scalar|Param|null, // Custom template path for generated migration classes. // Default: null
  893. * organize_migrations?: scalar|Param|null, // Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false // Default: false
  894. * enable_profiler?: bool|Param, // Whether or not to enable the profiler collector to calculate and visualize migration status. This adds some queries overhead. // Default: false
  895. * transactional?: bool|Param, // Whether or not to wrap migrations in a single transaction. // Default: true
  896. * }
  897. * @psalm-type DebugConfig = array{
  898. * max_items?: int|Param, // Max number of displayed items past the first level, -1 means no limit. // Default: 2500
  899. * min_depth?: int|Param, // Minimum tree depth to clone all the items, 1 is default. // Default: 1
  900. * max_string_length?: int|Param, // Max length of displayed strings, -1 means no limit. // Default: -1
  901. * dump_destination?: scalar|Param|null, // A stream URL where dumps should be written to. // Default: null
  902. * theme?: "dark"|"light"|Param, // Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light". // Default: "dark"
  903. * }
  904. * @psalm-type TwigConfig = array{
  905. * form_themes?: list<scalar|Param|null>,
  906. * globals?: array<string, array{ // Default: []
  907. * id?: scalar|Param|null,
  908. * type?: scalar|Param|null,
  909. * value?: mixed,
  910. * }>,
  911. * autoescape_service?: scalar|Param|null, // Default: null
  912. * autoescape_service_method?: scalar|Param|null, // Default: null
  913. * base_template_class?: scalar|Param|null, // Deprecated: The child node "base_template_class" at path "twig.base_template_class" is deprecated.
  914. * cache?: scalar|Param|null, // Default: true
  915. * charset?: scalar|Param|null, // Default: "%kernel.charset%"
  916. * debug?: bool|Param, // Default: "%kernel.debug%"
  917. * strict_variables?: bool|Param, // Default: "%kernel.debug%"
  918. * auto_reload?: scalar|Param|null,
  919. * optimizations?: int|Param,
  920. * default_path?: scalar|Param|null, // The default path used to load templates. // Default: "%kernel.project_dir%/templates"
  921. * file_name_pattern?: list<scalar|Param|null>,
  922. * paths?: array<string, mixed>,
  923. * date?: array{ // The default format options used by the date filter.
  924. * format?: scalar|Param|null, // Default: "F j, Y H:i"
  925. * interval_format?: scalar|Param|null, // Default: "%d days"
  926. * timezone?: scalar|Param|null, // The timezone used when formatting dates, when set to null, the timezone returned by date_default_timezone_get() is used. // Default: null
  927. * },
  928. * number_format?: array{ // The default format options for the number_format filter.
  929. * decimals?: int|Param, // Default: 0
  930. * decimal_point?: scalar|Param|null, // Default: "."
  931. * thousands_separator?: scalar|Param|null, // Default: ","
  932. * },
  933. * mailer?: array{
  934. * html_to_text_converter?: scalar|Param|null, // A service implementing the "Symfony\Component\Mime\HtmlToTextConverter\HtmlToTextConverterInterface". // Default: null
  935. * },
  936. * }
  937. * @psalm-type WebProfilerConfig = array{
  938. * toolbar?: bool|array{ // Profiler toolbar configuration
  939. * enabled?: bool|Param, // Default: false
  940. * ajax_replace?: bool|Param, // Replace toolbar on AJAX requests // Default: false
  941. * },
  942. * intercept_redirects?: bool|Param, // Default: false
  943. * excluded_ajax_paths?: scalar|Param|null, // Default: "^/((index|app(_[\\w]+)?)\\.php/)?_wdt"
  944. * }
  945. * @psalm-type StimulusConfig = array{
  946. * controller_paths?: list<scalar|Param|null>,
  947. * controllers_json?: scalar|Param|null, // Default: "%kernel.project_dir%/assets/controllers.json"
  948. * }
  949. * @psalm-type TurboConfig = array{
  950. * broadcast?: bool|array{
  951. * enabled?: bool|Param, // Default: true
  952. * entity_template_prefixes?: list<scalar|Param|null>,
  953. * doctrine_orm?: bool|array{ // Enable the Doctrine ORM integration
  954. * enabled?: bool|Param, // Default: true
  955. * },
  956. * },
  957. * default_transport?: scalar|Param|null, // Default: "default"
  958. * }
  959. * @psalm-type TwigExtraConfig = array{
  960. * cache?: bool|array{
  961. * enabled?: bool|Param, // Default: false
  962. * },
  963. * html?: bool|array{
  964. * enabled?: bool|Param, // Default: false
  965. * },
  966. * markdown?: bool|array{
  967. * enabled?: bool|Param, // Default: true
  968. * },
  969. * intl?: bool|array{
  970. * enabled?: bool|Param, // Default: true
  971. * },
  972. * cssinliner?: bool|array{
  973. * enabled?: bool|Param, // Default: false
  974. * },
  975. * inky?: bool|array{
  976. * enabled?: bool|Param, // Default: false
  977. * },
  978. * string?: bool|array{
  979. * enabled?: bool|Param, // Default: false
  980. * },
  981. * commonmark?: array{
  982. * renderer?: array{ // Array of options for rendering HTML.
  983. * block_separator?: scalar|Param|null,
  984. * inner_separator?: scalar|Param|null,
  985. * soft_break?: scalar|Param|null,
  986. * },
  987. * html_input?: "strip"|"allow"|"escape"|Param, // How to handle HTML input.
  988. * allow_unsafe_links?: bool|Param, // Remove risky link and image URLs by setting this to false. // Default: true
  989. * max_nesting_level?: int|Param, // The maximum nesting level for blocks. // Default: 9223372036854775807
  990. * max_delimiters_per_line?: int|Param, // The maximum number of strong/emphasis delimiters per line. // Default: 9223372036854775807
  991. * slug_normalizer?: array{ // Array of options for configuring how URL-safe slugs are created.
  992. * instance?: mixed,
  993. * max_length?: int|Param, // Default: 255
  994. * unique?: mixed,
  995. * },
  996. * commonmark?: array{ // Array of options for configuring the CommonMark core extension.
  997. * enable_em?: bool|Param, // Default: true
  998. * enable_strong?: bool|Param, // Default: true
  999. * use_asterisk?: bool|Param, // Default: true
  1000. * use_underscore?: bool|Param, // Default: true
  1001. * unordered_list_markers?: list<scalar|Param|null>,
  1002. * },
  1003. * ...<string, mixed>
  1004. * },
  1005. * }
  1006. * @psalm-type SecurityConfig = array{
  1007. * access_denied_url?: scalar|Param|null, // Default: null
  1008. * session_fixation_strategy?: "none"|"migrate"|"invalidate"|Param, // Default: "migrate"
  1009. * hide_user_not_found?: bool|Param, // Deprecated: The "hide_user_not_found" option is deprecated and will be removed in 8.0. Use the "expose_security_errors" option instead.
  1010. * expose_security_errors?: \Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::None|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::AccountStatus|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::All|Param, // Default: "none"
  1011. * erase_credentials?: bool|Param, // Default: true
  1012. * access_decision_manager?: array{
  1013. * strategy?: "affirmative"|"consensus"|"unanimous"|"priority"|Param,
  1014. * service?: scalar|Param|null,
  1015. * strategy_service?: scalar|Param|null,
  1016. * allow_if_all_abstain?: bool|Param, // Default: false
  1017. * allow_if_equal_granted_denied?: bool|Param, // Default: true
  1018. * },
  1019. * password_hashers?: array<string, string|array{ // Default: []
  1020. * algorithm?: scalar|Param|null,
  1021. * migrate_from?: list<scalar|Param|null>,
  1022. * hash_algorithm?: scalar|Param|null, // Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms. // Default: "sha512"
  1023. * key_length?: scalar|Param|null, // Default: 40
  1024. * ignore_case?: bool|Param, // Default: false
  1025. * encode_as_base64?: bool|Param, // Default: true
  1026. * iterations?: scalar|Param|null, // Default: 5000
  1027. * cost?: int|Param, // Default: null
  1028. * memory_cost?: scalar|Param|null, // Default: null
  1029. * time_cost?: scalar|Param|null, // Default: null
  1030. * id?: scalar|Param|null,
  1031. * }>,
  1032. * providers?: array<string, array{ // Default: []
  1033. * id?: scalar|Param|null,
  1034. * chain?: array{
  1035. * providers?: list<scalar|Param|null>,
  1036. * },
  1037. * entity?: array{
  1038. * class?: scalar|Param|null, // The full entity class name of your user class.
  1039. * property?: scalar|Param|null, // Default: null
  1040. * manager_name?: scalar|Param|null, // Default: null
  1041. * },
  1042. * memory?: array{
  1043. * users?: array<string, array{ // Default: []
  1044. * password?: scalar|Param|null, // Default: null
  1045. * roles?: list<scalar|Param|null>,
  1046. * }>,
  1047. * },
  1048. * ldap?: array{
  1049. * service?: scalar|Param|null,
  1050. * base_dn?: scalar|Param|null,
  1051. * search_dn?: scalar|Param|null, // Default: null
  1052. * search_password?: scalar|Param|null, // Default: null
  1053. * extra_fields?: list<scalar|Param|null>,
  1054. * default_roles?: list<scalar|Param|null>,
  1055. * role_fetcher?: scalar|Param|null, // Default: null
  1056. * uid_key?: scalar|Param|null, // Default: "sAMAccountName"
  1057. * filter?: scalar|Param|null, // Default: "({uid_key}={user_identifier})"
  1058. * password_attribute?: scalar|Param|null, // Default: null
  1059. * },
  1060. * }>,
  1061. * firewalls?: array<string, array{ // Default: []
  1062. * pattern?: scalar|Param|null,
  1063. * host?: scalar|Param|null,
  1064. * methods?: list<scalar|Param|null>,
  1065. * security?: bool|Param, // Default: true
  1066. * user_checker?: scalar|Param|null, // The UserChecker to use when authenticating users in this firewall. // Default: "security.user_checker"
  1067. * request_matcher?: scalar|Param|null,
  1068. * access_denied_url?: scalar|Param|null,
  1069. * access_denied_handler?: scalar|Param|null,
  1070. * entry_point?: scalar|Param|null, // An enabled authenticator name or a service id that implements "Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface".
  1071. * provider?: scalar|Param|null,
  1072. * stateless?: bool|Param, // Default: false
  1073. * lazy?: bool|Param, // Default: false
  1074. * context?: scalar|Param|null,
  1075. * logout?: array{
  1076. * enable_csrf?: bool|Param|null, // Default: null
  1077. * csrf_token_id?: scalar|Param|null, // Default: "logout"
  1078. * csrf_parameter?: scalar|Param|null, // Default: "_csrf_token"
  1079. * csrf_token_manager?: scalar|Param|null,
  1080. * path?: scalar|Param|null, // Default: "/logout"
  1081. * target?: scalar|Param|null, // Default: "/"
  1082. * invalidate_session?: bool|Param, // Default: true
  1083. * clear_site_data?: list<"*"|"cache"|"cookies"|"storage"|"executionContexts"|Param>,
  1084. * delete_cookies?: array<string, array{ // Default: []
  1085. * path?: scalar|Param|null, // Default: null
  1086. * domain?: scalar|Param|null, // Default: null
  1087. * secure?: scalar|Param|null, // Default: false
  1088. * samesite?: scalar|Param|null, // Default: null
  1089. * partitioned?: scalar|Param|null, // Default: false
  1090. * }>,
  1091. * },
  1092. * switch_user?: array{
  1093. * provider?: scalar|Param|null,
  1094. * parameter?: scalar|Param|null, // Default: "_switch_user"
  1095. * role?: scalar|Param|null, // Default: "ROLE_ALLOWED_TO_SWITCH"
  1096. * target_route?: scalar|Param|null, // Default: null
  1097. * },
  1098. * required_badges?: list<scalar|Param|null>,
  1099. * custom_authenticators?: list<scalar|Param|null>,
  1100. * login_throttling?: array{
  1101. * limiter?: scalar|Param|null, // A service id implementing "Symfony\Component\HttpFoundation\RateLimiter\RequestRateLimiterInterface".
  1102. * max_attempts?: int|Param, // Default: 5
  1103. * interval?: scalar|Param|null, // Default: "1 minute"
  1104. * lock_factory?: scalar|Param|null, // The service ID of the lock factory used by the login rate limiter (or null to disable locking). // Default: null
  1105. * cache_pool?: string|Param, // The cache pool to use for storing the limiter state // Default: "cache.rate_limiter"
  1106. * storage_service?: string|Param, // The service ID of a custom storage implementation, this precedes any configured "cache_pool" // Default: null
  1107. * },
  1108. * x509?: array{
  1109. * provider?: scalar|Param|null,
  1110. * user?: scalar|Param|null, // Default: "SSL_CLIENT_S_DN_Email"
  1111. * credentials?: scalar|Param|null, // Default: "SSL_CLIENT_S_DN"
  1112. * user_identifier?: scalar|Param|null, // Default: "emailAddress"
  1113. * },
  1114. * remote_user?: array{
  1115. * provider?: scalar|Param|null,
  1116. * user?: scalar|Param|null, // Default: "REMOTE_USER"
  1117. * },
  1118. * login_link?: array{
  1119. * check_route?: scalar|Param|null, // Route that will validate the login link - e.g. "app_login_link_verify".
  1120. * check_post_only?: scalar|Param|null, // If true, only HTTP POST requests to "check_route" will be handled by the authenticator. // Default: false
  1121. * signature_properties?: list<scalar|Param|null>,
  1122. * lifetime?: int|Param, // The lifetime of the login link in seconds. // Default: 600
  1123. * max_uses?: int|Param, // Max number of times a login link can be used - null means unlimited within lifetime. // Default: null
  1124. * used_link_cache?: scalar|Param|null, // Cache service id used to expired links of max_uses is set.
  1125. * success_handler?: scalar|Param|null, // A service id that implements Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface.
  1126. * failure_handler?: scalar|Param|null, // A service id that implements Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface.
  1127. * provider?: scalar|Param|null, // The user provider to load users from.
  1128. * secret?: scalar|Param|null, // Default: "%kernel.secret%"
  1129. * always_use_default_target_path?: bool|Param, // Default: false
  1130. * default_target_path?: scalar|Param|null, // Default: "/"
  1131. * login_path?: scalar|Param|null, // Default: "/login"
  1132. * target_path_parameter?: scalar|Param|null, // Default: "_target_path"
  1133. * use_referer?: bool|Param, // Default: false
  1134. * failure_path?: scalar|Param|null, // Default: null
  1135. * failure_forward?: bool|Param, // Default: false
  1136. * failure_path_parameter?: scalar|Param|null, // Default: "_failure_path"
  1137. * },
  1138. * form_login?: array{
  1139. * provider?: scalar|Param|null,
  1140. * remember_me?: bool|Param, // Default: true
  1141. * success_handler?: scalar|Param|null,
  1142. * failure_handler?: scalar|Param|null,
  1143. * check_path?: scalar|Param|null, // Default: "/login_check"
  1144. * use_forward?: bool|Param, // Default: false
  1145. * login_path?: scalar|Param|null, // Default: "/login"
  1146. * username_parameter?: scalar|Param|null, // Default: "_username"
  1147. * password_parameter?: scalar|Param|null, // Default: "_password"
  1148. * csrf_parameter?: scalar|Param|null, // Default: "_csrf_token"
  1149. * csrf_token_id?: scalar|Param|null, // Default: "authenticate"
  1150. * enable_csrf?: bool|Param, // Default: false
  1151. * post_only?: bool|Param, // Default: true
  1152. * form_only?: bool|Param, // Default: false
  1153. * always_use_default_target_path?: bool|Param, // Default: false
  1154. * default_target_path?: scalar|Param|null, // Default: "/"
  1155. * target_path_parameter?: scalar|Param|null, // Default: "_target_path"
  1156. * use_referer?: bool|Param, // Default: false
  1157. * failure_path?: scalar|Param|null, // Default: null
  1158. * failure_forward?: bool|Param, // Default: false
  1159. * failure_path_parameter?: scalar|Param|null, // Default: "_failure_path"
  1160. * },
  1161. * form_login_ldap?: array{
  1162. * provider?: scalar|Param|null,
  1163. * remember_me?: bool|Param, // Default: true
  1164. * success_handler?: scalar|Param|null,
  1165. * failure_handler?: scalar|Param|null,
  1166. * check_path?: scalar|Param|null, // Default: "/login_check"
  1167. * use_forward?: bool|Param, // Default: false
  1168. * login_path?: scalar|Param|null, // Default: "/login"
  1169. * username_parameter?: scalar|Param|null, // Default: "_username"
  1170. * password_parameter?: scalar|Param|null, // Default: "_password"
  1171. * csrf_parameter?: scalar|Param|null, // Default: "_csrf_token"
  1172. * csrf_token_id?: scalar|Param|null, // Default: "authenticate"
  1173. * enable_csrf?: bool|Param, // Default: false
  1174. * post_only?: bool|Param, // Default: true
  1175. * form_only?: bool|Param, // Default: false
  1176. * always_use_default_target_path?: bool|Param, // Default: false
  1177. * default_target_path?: scalar|Param|null, // Default: "/"
  1178. * target_path_parameter?: scalar|Param|null, // Default: "_target_path"
  1179. * use_referer?: bool|Param, // Default: false
  1180. * failure_path?: scalar|Param|null, // Default: null
  1181. * failure_forward?: bool|Param, // Default: false
  1182. * failure_path_parameter?: scalar|Param|null, // Default: "_failure_path"
  1183. * service?: scalar|Param|null, // Default: "ldap"
  1184. * dn_string?: scalar|Param|null, // Default: "{user_identifier}"
  1185. * query_string?: scalar|Param|null,
  1186. * search_dn?: scalar|Param|null, // Default: ""
  1187. * search_password?: scalar|Param|null, // Default: ""
  1188. * },
  1189. * json_login?: array{
  1190. * provider?: scalar|Param|null,
  1191. * remember_me?: bool|Param, // Default: true
  1192. * success_handler?: scalar|Param|null,
  1193. * failure_handler?: scalar|Param|null,
  1194. * check_path?: scalar|Param|null, // Default: "/login_check"
  1195. * use_forward?: bool|Param, // Default: false
  1196. * login_path?: scalar|Param|null, // Default: "/login"
  1197. * username_path?: scalar|Param|null, // Default: "username"
  1198. * password_path?: scalar|Param|null, // Default: "password"
  1199. * },
  1200. * json_login_ldap?: array{
  1201. * provider?: scalar|Param|null,
  1202. * remember_me?: bool|Param, // Default: true
  1203. * success_handler?: scalar|Param|null,
  1204. * failure_handler?: scalar|Param|null,
  1205. * check_path?: scalar|Param|null, // Default: "/login_check"
  1206. * use_forward?: bool|Param, // Default: false
  1207. * login_path?: scalar|Param|null, // Default: "/login"
  1208. * username_path?: scalar|Param|null, // Default: "username"
  1209. * password_path?: scalar|Param|null, // Default: "password"
  1210. * service?: scalar|Param|null, // Default: "ldap"
  1211. * dn_string?: scalar|Param|null, // Default: "{user_identifier}"
  1212. * query_string?: scalar|Param|null,
  1213. * search_dn?: scalar|Param|null, // Default: ""
  1214. * search_password?: scalar|Param|null, // Default: ""
  1215. * },
  1216. * access_token?: array{
  1217. * provider?: scalar|Param|null,
  1218. * remember_me?: bool|Param, // Default: true
  1219. * success_handler?: scalar|Param|null,
  1220. * failure_handler?: scalar|Param|null,
  1221. * realm?: scalar|Param|null, // Default: null
  1222. * token_extractors?: list<scalar|Param|null>,
  1223. * token_handler?: string|array{
  1224. * id?: scalar|Param|null,
  1225. * oidc_user_info?: string|array{
  1226. * base_uri?: scalar|Param|null, // Base URI of the userinfo endpoint on the OIDC server, or the OIDC server URI to use the discovery (require "discovery" to be configured).
  1227. * discovery?: array{ // Enable the OIDC discovery.
  1228. * cache?: array{
  1229. * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
  1230. * },
  1231. * },
  1232. * claim?: scalar|Param|null, // Claim which contains the user identifier (e.g. sub, email, etc.). // Default: "sub"
  1233. * client?: scalar|Param|null, // HttpClient service id to use to call the OIDC server.
  1234. * },
  1235. * oidc?: array{
  1236. * discovery?: array{ // Enable the OIDC discovery.
  1237. * base_uri?: list<scalar|Param|null>,
  1238. * cache?: array{
  1239. * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
  1240. * },
  1241. * },
  1242. * claim?: scalar|Param|null, // Claim which contains the user identifier (e.g.: sub, email..). // Default: "sub"
  1243. * audience?: scalar|Param|null, // Audience set in the token, for validation purpose.
  1244. * issuers?: list<scalar|Param|null>,
  1245. * algorithm?: array<mixed>,
  1246. * algorithms?: list<scalar|Param|null>,
  1247. * key?: scalar|Param|null, // Deprecated: The "key" option is deprecated and will be removed in 8.0. Use the "keyset" option instead. // JSON-encoded JWK used to sign the token (must contain a "kty" key).
  1248. * keyset?: scalar|Param|null, // JSON-encoded JWKSet used to sign the token (must contain a list of valid public keys).
  1249. * encryption?: bool|array{
  1250. * enabled?: bool|Param, // Default: false
  1251. * enforce?: bool|Param, // When enabled, the token shall be encrypted. // Default: false
  1252. * algorithms?: list<scalar|Param|null>,
  1253. * keyset?: scalar|Param|null, // JSON-encoded JWKSet used to decrypt the token (must contain a list of valid private keys).
  1254. * },
  1255. * },
  1256. * cas?: array{
  1257. * validation_url?: scalar|Param|null, // CAS server validation URL
  1258. * prefix?: scalar|Param|null, // CAS prefix // Default: "cas"
  1259. * http_client?: scalar|Param|null, // HTTP Client service // Default: null
  1260. * },
  1261. * oauth2?: scalar|Param|null,
  1262. * },
  1263. * },
  1264. * http_basic?: array{
  1265. * provider?: scalar|Param|null,
  1266. * realm?: scalar|Param|null, // Default: "Secured Area"
  1267. * },
  1268. * http_basic_ldap?: array{
  1269. * provider?: scalar|Param|null,
  1270. * realm?: scalar|Param|null, // Default: "Secured Area"
  1271. * service?: scalar|Param|null, // Default: "ldap"
  1272. * dn_string?: scalar|Param|null, // Default: "{user_identifier}"
  1273. * query_string?: scalar|Param|null,
  1274. * search_dn?: scalar|Param|null, // Default: ""
  1275. * search_password?: scalar|Param|null, // Default: ""
  1276. * },
  1277. * remember_me?: array{
  1278. * secret?: scalar|Param|null, // Default: "%kernel.secret%"
  1279. * service?: scalar|Param|null,
  1280. * user_providers?: list<scalar|Param|null>,
  1281. * catch_exceptions?: bool|Param, // Default: true
  1282. * signature_properties?: list<scalar|Param|null>,
  1283. * token_provider?: string|array{
  1284. * service?: scalar|Param|null, // The service ID of a custom remember-me token provider.
  1285. * doctrine?: bool|array{
  1286. * enabled?: bool|Param, // Default: false
  1287. * connection?: scalar|Param|null, // Default: null
  1288. * },
  1289. * },
  1290. * token_verifier?: scalar|Param|null, // The service ID of a custom rememberme token verifier.
  1291. * name?: scalar|Param|null, // Default: "REMEMBERME"
  1292. * lifetime?: int|Param, // Default: 31536000
  1293. * path?: scalar|Param|null, // Default: "/"
  1294. * domain?: scalar|Param|null, // Default: null
  1295. * secure?: true|false|"auto"|Param, // Default: false
  1296. * httponly?: bool|Param, // Default: true
  1297. * samesite?: null|"lax"|"strict"|"none"|Param, // Default: null
  1298. * always_remember_me?: bool|Param, // Default: false
  1299. * remember_me_parameter?: scalar|Param|null, // Default: "_remember_me"
  1300. * },
  1301. * }>,
  1302. * access_control?: list<array{ // Default: []
  1303. * request_matcher?: scalar|Param|null, // Default: null
  1304. * requires_channel?: scalar|Param|null, // Default: null
  1305. * path?: scalar|Param|null, // Use the urldecoded format. // Default: null
  1306. * host?: scalar|Param|null, // Default: null
  1307. * port?: int|Param, // Default: null
  1308. * ips?: list<scalar|Param|null>,
  1309. * attributes?: array<string, scalar|Param|null>,
  1310. * route?: scalar|Param|null, // Default: null
  1311. * methods?: list<scalar|Param|null>,
  1312. * allow_if?: scalar|Param|null, // Default: null
  1313. * roles?: list<scalar|Param|null>,
  1314. * }>,
  1315. * role_hierarchy?: array<string, string|list<scalar|Param|null>>,
  1316. * }
  1317. * @psalm-type MonologConfig = array{
  1318. * use_microseconds?: scalar|Param|null, // Default: true
  1319. * channels?: list<scalar|Param|null>,
  1320. * handlers?: array<string, array{ // Default: []
  1321. * type?: scalar|Param|null,
  1322. * id?: scalar|Param|null,
  1323. * enabled?: bool|Param, // Default: true
  1324. * priority?: scalar|Param|null, // Default: 0
  1325. * level?: scalar|Param|null, // Default: "DEBUG"
  1326. * bubble?: bool|Param, // Default: true
  1327. * interactive_only?: bool|Param, // Default: false
  1328. * app_name?: scalar|Param|null, // Default: null
  1329. * fill_extra_context?: bool|Param, // Default: false
  1330. * include_stacktraces?: bool|Param, // Default: false
  1331. * process_psr_3_messages?: array{
  1332. * enabled?: bool|Param|null, // Default: null
  1333. * date_format?: scalar|Param|null,
  1334. * remove_used_context_fields?: bool|Param,
  1335. * },
  1336. * path?: scalar|Param|null, // Default: "%kernel.logs_dir%/%kernel.environment%.log"
  1337. * file_permission?: scalar|Param|null, // Default: null
  1338. * use_locking?: bool|Param, // Default: false
  1339. * filename_format?: scalar|Param|null, // Default: "{filename}-{date}"
  1340. * date_format?: scalar|Param|null, // Default: "Y-m-d"
  1341. * ident?: scalar|Param|null, // Default: false
  1342. * logopts?: scalar|Param|null, // Default: 1
  1343. * facility?: scalar|Param|null, // Default: "user"
  1344. * max_files?: scalar|Param|null, // Default: 0
  1345. * action_level?: scalar|Param|null, // Default: "WARNING"
  1346. * activation_strategy?: scalar|Param|null, // Default: null
  1347. * stop_buffering?: bool|Param, // Default: true
  1348. * passthru_level?: scalar|Param|null, // Default: null
  1349. * excluded_404s?: list<scalar|Param|null>,
  1350. * excluded_http_codes?: list<array{ // Default: []
  1351. * code?: scalar|Param|null,
  1352. * urls?: list<scalar|Param|null>,
  1353. * }>,
  1354. * accepted_levels?: list<scalar|Param|null>,
  1355. * min_level?: scalar|Param|null, // Default: "DEBUG"
  1356. * max_level?: scalar|Param|null, // Default: "EMERGENCY"
  1357. * buffer_size?: scalar|Param|null, // Default: 0
  1358. * flush_on_overflow?: bool|Param, // Default: false
  1359. * handler?: scalar|Param|null,
  1360. * url?: scalar|Param|null,
  1361. * exchange?: scalar|Param|null,
  1362. * exchange_name?: scalar|Param|null, // Default: "log"
  1363. * room?: scalar|Param|null,
  1364. * message_format?: scalar|Param|null, // Default: "text"
  1365. * api_version?: scalar|Param|null, // Default: null
  1366. * channel?: scalar|Param|null, // Default: null
  1367. * bot_name?: scalar|Param|null, // Default: "Monolog"
  1368. * use_attachment?: scalar|Param|null, // Default: true
  1369. * use_short_attachment?: scalar|Param|null, // Default: false
  1370. * include_extra?: scalar|Param|null, // Default: false
  1371. * icon_emoji?: scalar|Param|null, // Default: null
  1372. * webhook_url?: scalar|Param|null,
  1373. * exclude_fields?: list<scalar|Param|null>,
  1374. * team?: scalar|Param|null,
  1375. * notify?: scalar|Param|null, // Default: false
  1376. * nickname?: scalar|Param|null, // Default: "Monolog"
  1377. * token?: scalar|Param|null,
  1378. * region?: scalar|Param|null,
  1379. * source?: scalar|Param|null,
  1380. * use_ssl?: bool|Param, // Default: true
  1381. * user?: mixed,
  1382. * title?: scalar|Param|null, // Default: null
  1383. * host?: scalar|Param|null, // Default: null
  1384. * port?: scalar|Param|null, // Default: 514
  1385. * config?: list<scalar|Param|null>,
  1386. * members?: list<scalar|Param|null>,
  1387. * connection_string?: scalar|Param|null,
  1388. * timeout?: scalar|Param|null,
  1389. * time?: scalar|Param|null, // Default: 60
  1390. * deduplication_level?: scalar|Param|null, // Default: 400
  1391. * store?: scalar|Param|null, // Default: null
  1392. * connection_timeout?: scalar|Param|null,
  1393. * persistent?: bool|Param,
  1394. * dsn?: scalar|Param|null,
  1395. * hub_id?: scalar|Param|null, // Default: null
  1396. * client_id?: scalar|Param|null, // Default: null
  1397. * auto_log_stacks?: scalar|Param|null, // Default: false
  1398. * release?: scalar|Param|null, // Default: null
  1399. * environment?: scalar|Param|null, // Default: null
  1400. * message_type?: scalar|Param|null, // Default: 0
  1401. * parse_mode?: scalar|Param|null, // Default: null
  1402. * disable_webpage_preview?: bool|Param|null, // Default: null
  1403. * disable_notification?: bool|Param|null, // Default: null
  1404. * split_long_messages?: bool|Param, // Default: false
  1405. * delay_between_messages?: bool|Param, // Default: false
  1406. * topic?: int|Param, // Default: null
  1407. * factor?: int|Param, // Default: 1
  1408. * tags?: list<scalar|Param|null>,
  1409. * console_formater_options?: mixed, // Deprecated: "monolog.handlers..console_formater_options.console_formater_options" is deprecated, use "monolog.handlers..console_formater_options.console_formatter_options" instead.
  1410. * console_formatter_options?: mixed, // Default: []
  1411. * formatter?: scalar|Param|null,
  1412. * nested?: bool|Param, // Default: false
  1413. * publisher?: string|array{
  1414. * id?: scalar|Param|null,
  1415. * hostname?: scalar|Param|null,
  1416. * port?: scalar|Param|null, // Default: 12201
  1417. * chunk_size?: scalar|Param|null, // Default: 1420
  1418. * encoder?: "json"|"compressed_json"|Param,
  1419. * },
  1420. * mongo?: string|array{
  1421. * id?: scalar|Param|null,
  1422. * host?: scalar|Param|null,
  1423. * port?: scalar|Param|null, // Default: 27017
  1424. * user?: scalar|Param|null,
  1425. * pass?: scalar|Param|null,
  1426. * database?: scalar|Param|null, // Default: "monolog"
  1427. * collection?: scalar|Param|null, // Default: "logs"
  1428. * },
  1429. * mongodb?: string|array{
  1430. * id?: scalar|Param|null, // ID of a MongoDB\Client service
  1431. * uri?: scalar|Param|null,
  1432. * username?: scalar|Param|null,
  1433. * password?: scalar|Param|null,
  1434. * database?: scalar|Param|null, // Default: "monolog"
  1435. * collection?: scalar|Param|null, // Default: "logs"
  1436. * },
  1437. * elasticsearch?: string|array{
  1438. * id?: scalar|Param|null,
  1439. * hosts?: list<scalar|Param|null>,
  1440. * host?: scalar|Param|null,
  1441. * port?: scalar|Param|null, // Default: 9200
  1442. * transport?: scalar|Param|null, // Default: "Http"
  1443. * user?: scalar|Param|null, // Default: null
  1444. * password?: scalar|Param|null, // Default: null
  1445. * },
  1446. * index?: scalar|Param|null, // Default: "monolog"
  1447. * document_type?: scalar|Param|null, // Default: "logs"
  1448. * ignore_error?: scalar|Param|null, // Default: false
  1449. * redis?: string|array{
  1450. * id?: scalar|Param|null,
  1451. * host?: scalar|Param|null,
  1452. * password?: scalar|Param|null, // Default: null
  1453. * port?: scalar|Param|null, // Default: 6379
  1454. * database?: scalar|Param|null, // Default: 0
  1455. * key_name?: scalar|Param|null, // Default: "monolog_redis"
  1456. * },
  1457. * predis?: string|array{
  1458. * id?: scalar|Param|null,
  1459. * host?: scalar|Param|null,
  1460. * },
  1461. * from_email?: scalar|Param|null,
  1462. * to_email?: list<scalar|Param|null>,
  1463. * subject?: scalar|Param|null,
  1464. * content_type?: scalar|Param|null, // Default: null
  1465. * headers?: list<scalar|Param|null>,
  1466. * mailer?: scalar|Param|null, // Default: null
  1467. * email_prototype?: string|array{
  1468. * id?: scalar|Param|null,
  1469. * method?: scalar|Param|null, // Default: null
  1470. * },
  1471. * lazy?: bool|Param, // Default: true
  1472. * verbosity_levels?: array{
  1473. * VERBOSITY_QUIET?: scalar|Param|null, // Default: "ERROR"
  1474. * VERBOSITY_NORMAL?: scalar|Param|null, // Default: "WARNING"
  1475. * VERBOSITY_VERBOSE?: scalar|Param|null, // Default: "NOTICE"
  1476. * VERBOSITY_VERY_VERBOSE?: scalar|Param|null, // Default: "INFO"
  1477. * VERBOSITY_DEBUG?: scalar|Param|null, // Default: "DEBUG"
  1478. * },
  1479. * channels?: string|array{
  1480. * type?: scalar|Param|null,
  1481. * elements?: list<scalar|Param|null>,
  1482. * },
  1483. * }>,
  1484. * }
  1485. * @psalm-type MakerConfig = array{
  1486. * root_namespace?: scalar|Param|null, // Default: "App"
  1487. * generate_final_classes?: bool|Param, // Default: true
  1488. * generate_final_entities?: bool|Param, // Default: false
  1489. * }
  1490. * @psalm-type ConfigType = array{
  1491. * imports?: ImportsConfig,
  1492. * parameters?: ParametersConfig,
  1493. * services?: ServicesConfig,
  1494. * framework?: FrameworkConfig,
  1495. * doctrine?: DoctrineConfig,
  1496. * doctrine_migrations?: DoctrineMigrationsConfig,
  1497. * twig?: TwigConfig,
  1498. * stimulus?: StimulusConfig,
  1499. * turbo?: TurboConfig,
  1500. * twig_extra?: TwigExtraConfig,
  1501. * security?: SecurityConfig,
  1502. * monolog?: MonologConfig,
  1503. * "when@dev"?: array{
  1504. * imports?: ImportsConfig,
  1505. * parameters?: ParametersConfig,
  1506. * services?: ServicesConfig,
  1507. * framework?: FrameworkConfig,
  1508. * doctrine?: DoctrineConfig,
  1509. * doctrine_migrations?: DoctrineMigrationsConfig,
  1510. * debug?: DebugConfig,
  1511. * twig?: TwigConfig,
  1512. * web_profiler?: WebProfilerConfig,
  1513. * stimulus?: StimulusConfig,
  1514. * turbo?: TurboConfig,
  1515. * twig_extra?: TwigExtraConfig,
  1516. * security?: SecurityConfig,
  1517. * monolog?: MonologConfig,
  1518. * maker?: MakerConfig,
  1519. * },
  1520. * "when@prod"?: array{
  1521. * imports?: ImportsConfig,
  1522. * parameters?: ParametersConfig,
  1523. * services?: ServicesConfig,
  1524. * framework?: FrameworkConfig,
  1525. * doctrine?: DoctrineConfig,
  1526. * doctrine_migrations?: DoctrineMigrationsConfig,
  1527. * twig?: TwigConfig,
  1528. * stimulus?: StimulusConfig,
  1529. * turbo?: TurboConfig,
  1530. * twig_extra?: TwigExtraConfig,
  1531. * security?: SecurityConfig,
  1532. * monolog?: MonologConfig,
  1533. * },
  1534. * "when@test"?: array{
  1535. * imports?: ImportsConfig,
  1536. * parameters?: ParametersConfig,
  1537. * services?: ServicesConfig,
  1538. * framework?: FrameworkConfig,
  1539. * doctrine?: DoctrineConfig,
  1540. * doctrine_migrations?: DoctrineMigrationsConfig,
  1541. * twig?: TwigConfig,
  1542. * web_profiler?: WebProfilerConfig,
  1543. * stimulus?: StimulusConfig,
  1544. * turbo?: TurboConfig,
  1545. * twig_extra?: TwigExtraConfig,
  1546. * security?: SecurityConfig,
  1547. * monolog?: MonologConfig,
  1548. * },
  1549. * ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias
  1550. * imports?: ImportsConfig,
  1551. * parameters?: ParametersConfig,
  1552. * services?: ServicesConfig,
  1553. * ...<string, ExtensionType>,
  1554. * }>
  1555. * }
  1556. */
  1557. final class App
  1558. {
  1559. /**
  1560. * @param ConfigType $config
  1561. *
  1562. * @psalm-return ConfigType
  1563. */
  1564. public static function config(array $config): array
  1565. {
  1566. /** @var ConfigType $config */
  1567. $config = AppReference::config($config);
  1568. return $config;
  1569. }
  1570. }
  1571. namespace Symfony\Component\Routing\Loader\Configurator;
  1572. /**
  1573. * This class provides array-shapes for configuring the routes of an application.
  1574. *
  1575. * Example:
  1576. *
  1577. * ```php
  1578. * // config/routes.php
  1579. * namespace Symfony\Component\Routing\Loader\Configurator;
  1580. *
  1581. * return Routes::config([
  1582. * 'controllers' => [
  1583. * 'resource' => 'routing.controllers',
  1584. * ],
  1585. * ]);
  1586. * ```
  1587. *
  1588. * @psalm-type RouteConfig = array{
  1589. * path: string|array<string,string>,
  1590. * controller?: string,
  1591. * methods?: string|list<string>,
  1592. * requirements?: array<string,string>,
  1593. * defaults?: array<string,mixed>,
  1594. * options?: array<string,mixed>,
  1595. * host?: string|array<string,string>,
  1596. * schemes?: string|list<string>,
  1597. * condition?: string,
  1598. * locale?: string,
  1599. * format?: string,
  1600. * utf8?: bool,
  1601. * stateless?: bool,
  1602. * }
  1603. * @psalm-type ImportConfig = array{
  1604. * resource: string,
  1605. * type?: string,
  1606. * exclude?: string|list<string>,
  1607. * prefix?: string|array<string,string>,
  1608. * name_prefix?: string,
  1609. * trailing_slash_on_root?: bool,
  1610. * controller?: string,
  1611. * methods?: string|list<string>,
  1612. * requirements?: array<string,string>,
  1613. * defaults?: array<string,mixed>,
  1614. * options?: array<string,mixed>,
  1615. * host?: string|array<string,string>,
  1616. * schemes?: string|list<string>,
  1617. * condition?: string,
  1618. * locale?: string,
  1619. * format?: string,
  1620. * utf8?: bool,
  1621. * stateless?: bool,
  1622. * }
  1623. * @psalm-type AliasConfig = array{
  1624. * alias: string,
  1625. * deprecated?: array{package:string, version:string, message?:string},
  1626. * }
  1627. * @psalm-type RoutesConfig = array{
  1628. * "when@dev"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
  1629. * "when@prod"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
  1630. * "when@test"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
  1631. * ...<string, RouteConfig|ImportConfig|AliasConfig>
  1632. * }
  1633. */
  1634. final class Routes
  1635. {
  1636. /**
  1637. * @param RoutesConfig $config
  1638. *
  1639. * @psalm-return RoutesConfig
  1640. */
  1641. public static function config(array $config): array
  1642. {
  1643. return $config;
  1644. }
  1645. }