|
208 | 208 | * initial_marking?: list<scalar|Param|null>, |
209 | 209 | * events_to_dispatch?: list<string|Param>|null, |
210 | 210 | * places?: list<array{ // Default: [] |
211 | | - * name?: scalar|Param|null, |
212 | | - * metadata?: array<string, mixed>, |
| 211 | + * name: scalar|Param|null, |
| 212 | + * metadata?: list<mixed>, |
213 | 213 | * }>, |
214 | | - * transitions?: list<array{ // Default: [] |
215 | | - * name?: string|Param, |
| 214 | + * transitions: list<array{ // Default: [] |
| 215 | + * name: string|Param, |
216 | 216 | * guard?: string|Param, // An expression to block the transition. |
217 | 217 | * from?: list<array{ // Default: [] |
218 | | - * place?: string|Param, |
| 218 | + * place: string|Param, |
219 | 219 | * weight?: int|Param, // Default: 1 |
220 | 220 | * }>, |
221 | 221 | * to?: list<array{ // Default: [] |
222 | | - * place?: string|Param, |
| 222 | + * place: string|Param, |
223 | 223 | * weight?: int|Param, // Default: 1 |
224 | 224 | * }>, |
225 | 225 | * weight?: int|Param, // Default: 1 |
226 | | - * metadata?: array<string, mixed>, |
| 226 | + * metadata?: list<mixed>, |
227 | 227 | * }>, |
228 | | - * metadata?: array<string, mixed>, |
| 228 | + * metadata?: list<mixed>, |
229 | 229 | * }>, |
230 | 230 | * }, |
231 | 231 | * router?: bool|array{ // Router configuration |
232 | 232 | * enabled?: bool|Param, // Default: false |
233 | | - * resource?: scalar|Param|null, |
| 233 | + * resource: scalar|Param|null, |
234 | 234 | * type?: scalar|Param|null, |
235 | 235 | * default_uri?: scalar|Param|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null |
236 | 236 | * http_port?: scalar|Param|null, // Default: 80 |
|
353 | 353 | * mapping?: array{ |
354 | 354 | * paths?: list<scalar|Param|null>, |
355 | 355 | * }, |
356 | | - * default_context?: array<string, mixed>, |
| 356 | + * default_context?: list<mixed>, |
357 | 357 | * named_serializers?: array<string, array{ // Default: [] |
358 | 358 | * name_converter?: scalar|Param|null, |
359 | | - * default_context?: array<string, mixed>, |
| 359 | + * default_context?: list<mixed>, |
360 | 360 | * include_built_in_normalizers?: bool|Param, // Whether to include the built-in normalizers // Default: true |
361 | 361 | * include_built_in_encoders?: bool|Param, // Whether to include the built-in encoders // Default: true |
362 | 362 | * }>, |
|
420 | 420 | * }, |
421 | 421 | * messenger?: bool|array{ // Messenger configuration |
422 | 422 | * enabled?: bool|Param, // Default: false |
423 | | - * routing?: array<string, string|array{ // Default: [] |
| 423 | + * routing?: array<string, array{ // Default: [] |
424 | 424 | * senders?: list<scalar|Param|null>, |
425 | 425 | * }>, |
426 | 426 | * serializer?: array{ |
|
433 | 433 | * transports?: array<string, string|array{ // Default: [] |
434 | 434 | * dsn?: scalar|Param|null, |
435 | 435 | * serializer?: scalar|Param|null, // Service id of a custom serializer to use. // Default: null |
436 | | - * options?: array<string, mixed>, |
| 436 | + * options?: list<mixed>, |
437 | 437 | * failure_transport?: scalar|Param|null, // Transport name to send failed messages to (after all retries have failed). // Default: null |
438 | 438 | * retry_strategy?: string|array{ |
439 | 439 | * service?: scalar|Param|null, // Service id to override the retry strategy entirely. // Default: null |
|
455 | 455 | * allow_no_senders?: bool|Param, // Default: true |
456 | 456 | * }, |
457 | 457 | * middleware?: list<string|array{ // Default: [] |
458 | | - * id?: scalar|Param|null, |
| 458 | + * id: scalar|Param|null, |
459 | 459 | * arguments?: list<mixed>, |
460 | 460 | * }>, |
461 | 461 | * }>, |
|
627 | 627 | * lock_factory?: scalar|Param|null, // The service ID of the lock factory used by this limiter (or null to disable locking). // Default: "auto" |
628 | 628 | * cache_pool?: scalar|Param|null, // The cache pool to use for storing the current limiter state. // Default: "cache.rate_limiter" |
629 | 629 | * storage_service?: scalar|Param|null, // The service ID of a custom storage implementation, this precedes any configured "cache_pool". // Default: null |
630 | | - * policy?: "fixed_window"|"token_bucket"|"sliding_window"|"compound"|"no_limit"|Param, // The algorithm to be used by this limiter. |
| 630 | + * policy: "fixed_window"|"token_bucket"|"sliding_window"|"compound"|"no_limit"|Param, // The algorithm to be used by this limiter. |
631 | 631 | * limiters?: list<scalar|Param|null>, |
632 | 632 | * limit?: int|Param, // The maximum allowed hits in a fixed interval or burst. |
633 | 633 | * interval?: scalar|Param|null, // Configures the fixed interval if "policy" is set to "fixed_window" or "sliding_window". The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent). |
|
672 | 672 | * enabled?: bool|Param, // Default: false |
673 | 673 | * message_bus?: scalar|Param|null, // The message bus to use. // Default: "messenger.default_bus" |
674 | 674 | * routing?: array<string, array{ // Default: [] |
675 | | - * service?: scalar|Param|null, |
| 675 | + * service: scalar|Param|null, |
676 | 676 | * secret?: scalar|Param|null, // Default: "" |
677 | 677 | * }>, |
678 | 678 | * }, |
|
777 | 777 | * dbal?: array{ |
778 | 778 | * default_connection?: scalar|Param|null, |
779 | 779 | * types?: array<string, string|array{ // Default: [] |
780 | | - * class?: scalar|Param|null, |
| 780 | + * class: scalar|Param|null, |
781 | 781 | * }>, |
782 | 782 | * driver_schemes?: array<string, scalar|Param|null>, |
783 | 783 | * connections?: array<string, array{ // Default: [] |
|
948 | 948 | * datetime_functions?: array<string, scalar|Param|null>, |
949 | 949 | * }, |
950 | 950 | * filters?: array<string, string|array{ // Default: [] |
951 | | - * class?: scalar|Param|null, |
| 951 | + * class: scalar|Param|null, |
952 | 952 | * enabled?: bool|Param, // Default: false |
953 | 953 | * parameters?: array<string, mixed>, |
954 | 954 | * }>, |
|
971 | 971 | * options?: mixed, // Deprecated: The "options" node at "sylius_resource.resources..options" is deprecated and will be removed in 2.0. |
972 | 972 | * templates?: scalar|Param|null, |
973 | 973 | * state_machine_component?: scalar|Param|null, // Default: null |
974 | | - * classes?: array{ |
975 | | - * model?: scalar|Param|null, |
| 974 | + * classes: array{ |
| 975 | + * model: scalar|Param|null, |
976 | 976 | * interface?: scalar|Param|null, |
977 | 977 | * controller?: scalar|Param|null, // Default: "Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController" |
978 | 978 | * repository?: scalar|Param|null, |
|
981 | 981 | * }, |
982 | 982 | * translation?: array{ |
983 | 983 | * options?: mixed, // Deprecated: The "options" node at "sylius_resource.resources..translation.options" is deprecated and will be removed in 2.0. |
984 | | - * classes?: array{ |
985 | | - * model?: scalar|Param|null, |
| 984 | + * classes: array{ |
| 985 | + * model: scalar|Param|null, |
986 | 986 | * interface?: scalar|Param|null, |
987 | 987 | * controller?: scalar|Param|null, // Default: "Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController" |
988 | 988 | * repository?: scalar|Param|null, |
|
1087 | 1087 | * sorting?: array<string, "asc"|"desc"|Param>, |
1088 | 1088 | * limits?: list<int|Param>, |
1089 | 1089 | * fields?: array<string, array{ // Default: [] |
1090 | | - * type?: scalar|Param|null, |
| 1090 | + * type: scalar|Param|null, |
1091 | 1091 | * label?: scalar|Param|null, |
1092 | 1092 | * path?: scalar|Param|null, |
1093 | 1093 | * sortable?: scalar|Param|null, |
|
1096 | 1096 | * options?: list<mixed>, |
1097 | 1097 | * }>, |
1098 | 1098 | * filters?: array<string, array{ // Default: [] |
1099 | | - * type?: scalar|Param|null, |
| 1099 | + * type: scalar|Param|null, |
1100 | 1100 | * label?: scalar|Param|null, |
1101 | 1101 | * enabled?: scalar|Param|null, // Default: true |
1102 | 1102 | * template?: scalar|Param|null, |
|
1106 | 1106 | * default_value?: mixed, |
1107 | 1107 | * }>, |
1108 | 1108 | * actions?: array<string, array<string, array{ // Default: [] |
1109 | | - * type?: scalar|Param|null, |
| 1109 | + * type: scalar|Param|null, |
1110 | 1110 | * label?: scalar|Param|null, |
1111 | 1111 | * enabled?: scalar|Param|null, // Default: true |
1112 | 1112 | * template?: scalar|Param|null, |
|
1119 | 1119 | * } |
1120 | 1120 | * @psalm-type VichUploaderConfig = array{ |
1121 | 1121 | * default_filename_attribute_suffix?: scalar|Param|null, // Default: "_name" |
1122 | | - * db_driver?: scalar|Param|null, |
| 1122 | + * db_driver: scalar|Param|null, |
1123 | 1123 | * storage?: scalar|Param|null, // Default: "file_system" |
1124 | 1124 | * use_flysystem_to_resolve_uri?: bool|Param, // Default: false |
1125 | 1125 | * twig?: scalar|Param|null, // twig requires templating // Default: true |
|
1132 | 1132 | * }, |
1133 | 1133 | * auto_detection?: bool|Param, // Default: true |
1134 | 1134 | * directories?: list<array{ // Default: [] |
1135 | | - * path?: scalar|Param|null, |
| 1135 | + * path: scalar|Param|null, |
1136 | 1136 | * namespace_prefix?: scalar|Param|null, // Default: "" |
1137 | 1137 | * }>, |
1138 | 1138 | * }, |
|
1191 | 1191 | * providers?: list<scalar|Param|null>, |
1192 | 1192 | * }, |
1193 | 1193 | * entity?: array{ |
1194 | | - * class?: scalar|Param|null, // The full entity class name of your user class. |
| 1194 | + * class: scalar|Param|null, // The full entity class name of your user class. |
1195 | 1195 | * property?: scalar|Param|null, // Default: null |
1196 | 1196 | * manager_name?: scalar|Param|null, // Default: null |
1197 | 1197 | * }, |
|
1202 | 1202 | * }>, |
1203 | 1203 | * }, |
1204 | 1204 | * ldap?: array{ |
1205 | | - * service?: scalar|Param|null, |
1206 | | - * base_dn?: scalar|Param|null, |
| 1205 | + * service: scalar|Param|null, |
| 1206 | + * base_dn: scalar|Param|null, |
1207 | 1207 | * search_dn?: scalar|Param|null, // Default: null |
1208 | 1208 | * search_password?: scalar|Param|null, // Default: null |
1209 | 1209 | * extra_fields?: list<scalar|Param|null>, |
|
1214 | 1214 | * password_attribute?: scalar|Param|null, // Default: null |
1215 | 1215 | * }, |
1216 | 1216 | * }>, |
1217 | | - * firewalls?: array<string, array{ // Default: [] |
| 1217 | + * firewalls: array<string, array{ // Default: [] |
1218 | 1218 | * pattern?: scalar|Param|null, |
1219 | 1219 | * host?: scalar|Param|null, |
1220 | 1220 | * methods?: list<scalar|Param|null>, |
|
1272 | 1272 | * user?: scalar|Param|null, // Default: "REMOTE_USER" |
1273 | 1273 | * }, |
1274 | 1274 | * login_link?: array{ |
1275 | | - * check_route?: scalar|Param|null, // Route that will validate the login link - e.g. "app_login_link_verify". |
| 1275 | + * check_route: scalar|Param|null, // Route that will validate the login link - e.g. "app_login_link_verify". |
1276 | 1276 | * check_post_only?: scalar|Param|null, // If true, only HTTP POST requests to "check_route" will be handled by the authenticator. // Default: false |
1277 | | - * signature_properties?: list<scalar|Param|null>, |
| 1277 | + * signature_properties: list<scalar|Param|null>, |
1278 | 1278 | * lifetime?: int|Param, // The lifetime of the login link in seconds. // Default: 600 |
1279 | 1279 | * max_uses?: int|Param, // Max number of times a login link can be used - null means unlimited within lifetime. // Default: null |
1280 | 1280 | * used_link_cache?: scalar|Param|null, // Cache service id used to expired links of max_uses is set. |
|
1376 | 1376 | * failure_handler?: scalar|Param|null, |
1377 | 1377 | * realm?: scalar|Param|null, // Default: null |
1378 | 1378 | * token_extractors?: list<scalar|Param|null>, |
1379 | | - * token_handler?: string|array{ |
| 1379 | + * token_handler: string|array{ |
1380 | 1380 | * id?: scalar|Param|null, |
1381 | 1381 | * oidc_user_info?: string|array{ |
1382 | | - * base_uri?: scalar|Param|null, // Base URI of the userinfo endpoint on the OIDC server, or the OIDC server URI to use the discovery (require "discovery" to be configured). |
| 1382 | + * base_uri: scalar|Param|null, // Base URI of the userinfo endpoint on the OIDC server, or the OIDC server URI to use the discovery (require "discovery" to be configured). |
1383 | 1383 | * discovery?: array{ // Enable the OIDC discovery. |
1384 | 1384 | * cache?: array{ |
1385 | | - * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration. |
| 1385 | + * id: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration. |
1386 | 1386 | * }, |
1387 | 1387 | * }, |
1388 | 1388 | * claim?: scalar|Param|null, // Claim which contains the user identifier (e.g. sub, email, etc.). // Default: "sub" |
1389 | 1389 | * client?: scalar|Param|null, // HttpClient service id to use to call the OIDC server. |
1390 | 1390 | * }, |
1391 | 1391 | * oidc?: array{ |
1392 | 1392 | * discovery?: array{ // Enable the OIDC discovery. |
1393 | | - * base_uri?: list<scalar|Param|null>, |
| 1393 | + * base_uri: list<scalar|Param|null>, |
1394 | 1394 | * cache?: array{ |
1395 | | - * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration. |
| 1395 | + * id: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration. |
1396 | 1396 | * }, |
1397 | 1397 | * }, |
1398 | 1398 | * claim?: scalar|Param|null, // Claim which contains the user identifier (e.g.: sub, email..). // Default: "sub" |
1399 | | - * audience?: scalar|Param|null, // Audience set in the token, for validation purpose. |
1400 | | - * issuers?: list<scalar|Param|null>, |
1401 | | - * algorithms?: list<scalar|Param|null>, |
| 1399 | + * audience: scalar|Param|null, // Audience set in the token, for validation purpose. |
| 1400 | + * issuers: list<scalar|Param|null>, |
| 1401 | + * algorithms: list<scalar|Param|null>, |
1402 | 1402 | * keyset?: scalar|Param|null, // JSON-encoded JWKSet used to sign the token (must contain a list of valid public keys). |
1403 | 1403 | * encryption?: bool|array{ |
1404 | 1404 | * enabled?: bool|Param, // Default: false |
1405 | 1405 | * enforce?: bool|Param, // When enabled, the token shall be encrypted. // Default: false |
1406 | | - * algorithms?: list<scalar|Param|null>, |
1407 | | - * keyset?: scalar|Param|null, // JSON-encoded JWKSet used to decrypt the token (must contain a list of valid private keys). |
| 1406 | + * algorithms: list<scalar|Param|null>, |
| 1407 | + * keyset: scalar|Param|null, // JSON-encoded JWKSet used to decrypt the token (must contain a list of valid private keys). |
1408 | 1408 | * }, |
1409 | 1409 | * }, |
1410 | 1410 | * cas?: array{ |
1411 | | - * validation_url?: scalar|Param|null, // CAS server validation URL |
| 1411 | + * validation_url: scalar|Param|null, // CAS server validation URL |
1412 | 1412 | * prefix?: scalar|Param|null, // CAS prefix // Default: "cas" |
1413 | 1413 | * http_client?: scalar|Param|null, // HTTP Client service // Default: null |
1414 | 1414 | * }, |
@@ -1601,10 +1601,7 @@ final class App |
1601 | 1601 | */ |
1602 | 1602 | public static function config(array $config): array |
1603 | 1603 | { |
1604 | | - /** @var ConfigType $config */ |
1605 | | - $config = AppReference::config($config); |
1606 | | - |
1607 | | - return $config; |
| 1604 | + return AppReference::config($config); |
1608 | 1605 | } |
1609 | 1606 | } |
1610 | 1607 |
|
|
0 commit comments