reference.php 91 KB

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