|
|
@@ -128,7 +128,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* @psalm-type FrameworkConfig = array{
|
|
|
* secret?: scalar|Param|null,
|
|
|
* http_method_override?: bool|Param, // Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. // Default: false
|
|
|
- * allowed_http_method_override?: list<string|Param>|null,
|
|
|
+ * allowed_http_method_override?: null|list<string|Param>,
|
|
|
* trust_x_sendfile_type_header?: scalar|Param|null, // Set true to enable support for xsendfile in binary file responses. // Default: "%env(bool:default::SYMFONY_TRUST_X_SENDFILE_TYPE_HEADER)%"
|
|
|
* ide?: scalar|Param|null, // Default: "%env(default::SYMFONY_IDE)%"
|
|
|
* test?: bool|Param,
|
|
|
@@ -136,9 +136,9 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* set_locale_from_accept_language?: bool|Param, // Whether to use the Accept-Language HTTP header to set the Request locale (only when the "_locale" request attribute is not passed). // Default: false
|
|
|
* set_content_language_from_locale?: bool|Param, // Whether to set the Content-Language HTTP header on the Response using the Request locale. // Default: false
|
|
|
* enabled_locales?: list<scalar|Param|null>,
|
|
|
- * trusted_hosts?: list<scalar|Param|null>,
|
|
|
+ * trusted_hosts?: string|list<scalar|Param|null>,
|
|
|
* trusted_proxies?: mixed, // Default: ["%env(default::SYMFONY_TRUSTED_PROXIES)%"]
|
|
|
- * trusted_headers?: list<scalar|Param|null>,
|
|
|
+ * trusted_headers?: string|list<scalar|Param|null>,
|
|
|
* error_controller?: scalar|Param|null, // Default: "error_controller"
|
|
|
* handle_all_throwables?: bool|Param, // HttpKernel will handle all kinds of \Throwable. // Default: true
|
|
|
* csrf_protection?: bool|array{
|
|
|
@@ -202,35 +202,35 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* property?: scalar|Param|null,
|
|
|
* service?: scalar|Param|null,
|
|
|
* },
|
|
|
- * supports?: list<scalar|Param|null>,
|
|
|
+ * supports?: string|list<scalar|Param|null>,
|
|
|
* definition_validators?: list<scalar|Param|null>,
|
|
|
* support_strategy?: scalar|Param|null,
|
|
|
- * initial_marking?: list<scalar|Param|null>,
|
|
|
- * events_to_dispatch?: list<string|Param>|null,
|
|
|
- * places?: list<array{ // Default: []
|
|
|
- * name: scalar|Param|null,
|
|
|
- * metadata?: list<mixed>,
|
|
|
+ * initial_marking?: \BackedEnum|string|list<scalar|Param|null>,
|
|
|
+ * events_to_dispatch?: null|list<string|Param>,
|
|
|
+ * places?: string|list<array{ // Default: []
|
|
|
+ * name?: scalar|Param|null,
|
|
|
+ * metadata?: array<string, mixed>,
|
|
|
* }>,
|
|
|
- * transitions: list<array{ // Default: []
|
|
|
- * name: string|Param,
|
|
|
+ * transitions?: list<array{ // Default: []
|
|
|
+ * name?: string|Param,
|
|
|
* guard?: string|Param, // An expression to block the transition.
|
|
|
- * from?: list<array{ // Default: []
|
|
|
- * place: string|Param,
|
|
|
+ * from?: \BackedEnum|string|list<array{ // Default: []
|
|
|
+ * place?: string|Param,
|
|
|
* weight?: int|Param, // Default: 1
|
|
|
* }>,
|
|
|
- * to?: list<array{ // Default: []
|
|
|
- * place: string|Param,
|
|
|
+ * to?: \BackedEnum|string|list<array{ // Default: []
|
|
|
+ * place?: string|Param,
|
|
|
* weight?: int|Param, // Default: 1
|
|
|
* }>,
|
|
|
* weight?: int|Param, // Default: 1
|
|
|
- * metadata?: list<mixed>,
|
|
|
+ * metadata?: array<string, mixed>,
|
|
|
* }>,
|
|
|
- * metadata?: list<mixed>,
|
|
|
+ * metadata?: array<string, mixed>,
|
|
|
* }>,
|
|
|
* },
|
|
|
* router?: bool|array{ // Router configuration
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
- * resource: scalar|Param|null,
|
|
|
+ * resource?: scalar|Param|null,
|
|
|
* type?: scalar|Param|null,
|
|
|
* cache_dir?: scalar|Param|null, // Deprecated: Setting the "framework.router.cache_dir.cache_dir" configuration option is deprecated. It will be removed in version 8.0. // Default: "%kernel.build_dir%"
|
|
|
* default_uri?: scalar|Param|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null
|
|
|
@@ -271,7 +271,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* version_format?: scalar|Param|null, // Default: "%%s?%%s"
|
|
|
* json_manifest_path?: scalar|Param|null, // Default: null
|
|
|
* base_path?: scalar|Param|null, // Default: ""
|
|
|
- * base_urls?: list<scalar|Param|null>,
|
|
|
+ * base_urls?: string|list<scalar|Param|null>,
|
|
|
* packages?: array<string, array{ // Default: []
|
|
|
* strict_mode?: bool|Param, // Throw an exception if an entry is missing from the manifest.json. // Default: false
|
|
|
* version_strategy?: scalar|Param|null, // Default: null
|
|
|
@@ -279,12 +279,12 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* version_format?: scalar|Param|null, // Default: null
|
|
|
* json_manifest_path?: scalar|Param|null, // Default: null
|
|
|
* base_path?: scalar|Param|null, // Default: ""
|
|
|
- * base_urls?: list<scalar|Param|null>,
|
|
|
+ * base_urls?: string|list<scalar|Param|null>,
|
|
|
* }>,
|
|
|
* },
|
|
|
* asset_mapper?: bool|array{ // Asset Mapper configuration
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
- * paths?: array<string, scalar|Param|null>,
|
|
|
+ * paths?: string|array<string, scalar|Param|null>,
|
|
|
* excluded_patterns?: list<scalar|Param|null>,
|
|
|
* exclude_dotfiles?: bool|Param, // If true, any files starting with "." will be excluded from the asset mapper. // Default: true
|
|
|
* server?: bool|Param, // If true, a "dev server" will return the assets from the public directory (true in "debug" mode only by default). // Default: true
|
|
|
@@ -303,7 +303,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* },
|
|
|
* translator?: bool|array{ // Translator configuration
|
|
|
* enabled?: bool|Param, // Default: true
|
|
|
- * fallbacks?: list<scalar|Param|null>,
|
|
|
+ * fallbacks?: string|list<scalar|Param|null>,
|
|
|
* logging?: bool|Param, // Default: false
|
|
|
* formatter?: scalar|Param|null, // Default: "translator.formatter.default"
|
|
|
* cache_dir?: scalar|Param|null, // Default: "%kernel.cache_dir%/translations"
|
|
|
@@ -333,7 +333,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* enabled?: bool|Param, // Default: true
|
|
|
* cache?: scalar|Param|null, // Deprecated: Setting the "framework.validation.cache.cache" configuration option is deprecated. It will be removed in version 8.0.
|
|
|
* enable_attributes?: bool|Param, // Default: true
|
|
|
- * static_method?: list<scalar|Param|null>,
|
|
|
+ * static_method?: string|list<scalar|Param|null>,
|
|
|
* translation_domain?: scalar|Param|null, // Default: "validators"
|
|
|
* email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict"|"loose"|Param, // Default: "html5"
|
|
|
* mapping?: array{
|
|
|
@@ -360,10 +360,10 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* mapping?: array{
|
|
|
* paths?: list<scalar|Param|null>,
|
|
|
* },
|
|
|
- * default_context?: list<mixed>,
|
|
|
+ * default_context?: array<string, mixed>,
|
|
|
* named_serializers?: array<string, array{ // Default: []
|
|
|
* name_converter?: scalar|Param|null,
|
|
|
- * default_context?: list<mixed>,
|
|
|
+ * default_context?: array<string, mixed>,
|
|
|
* include_built_in_normalizers?: bool|Param, // Whether to include the built-in normalizers // Default: true
|
|
|
* include_built_in_encoders?: bool|Param, // Whether to include the built-in encoders // Default: true
|
|
|
* }>,
|
|
|
@@ -396,7 +396,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* default_doctrine_dbal_provider?: scalar|Param|null, // Default: "database_connection"
|
|
|
* default_pdo_provider?: scalar|Param|null, // Default: null
|
|
|
* pools?: array<string, array{ // Default: []
|
|
|
- * adapters?: list<scalar|Param|null>,
|
|
|
+ * adapters?: string|list<scalar|Param|null>,
|
|
|
* tags?: scalar|Param|null, // Default: null
|
|
|
* public?: bool|Param, // Default: false
|
|
|
* default_lifetime?: scalar|Param|null, // Default lifetime of the pool.
|
|
|
@@ -419,15 +419,15 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* },
|
|
|
* lock?: bool|string|array{ // Lock configuration
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
- * resources?: array<string, string|list<scalar|Param|null>>,
|
|
|
+ * resources?: string|array<string, string|list<scalar|Param|null>>,
|
|
|
* },
|
|
|
* semaphore?: bool|string|array{ // Semaphore configuration
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
- * resources?: array<string, scalar|Param|null>,
|
|
|
+ * resources?: string|array<string, scalar|Param|null>,
|
|
|
* },
|
|
|
* messenger?: bool|array{ // Messenger configuration
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
- * routing?: array<string, array{ // Default: []
|
|
|
+ * routing?: array<string, string|array{ // Default: []
|
|
|
* senders?: list<scalar|Param|null>,
|
|
|
* }>,
|
|
|
* serializer?: array{
|
|
|
@@ -440,7 +440,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* transports?: array<string, string|array{ // Default: []
|
|
|
* dsn?: scalar|Param|null,
|
|
|
* serializer?: scalar|Param|null, // Service id of a custom serializer to use. // Default: null
|
|
|
- * options?: list<mixed>,
|
|
|
+ * options?: array<string, mixed>,
|
|
|
* failure_transport?: scalar|Param|null, // Transport name to send failed messages to (after all retries have failed). // Default: null
|
|
|
* retry_strategy?: string|array{
|
|
|
* service?: scalar|Param|null, // Service id to override the retry strategy entirely. // Default: null
|
|
|
@@ -453,7 +453,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* rate_limiter?: scalar|Param|null, // Rate limiter name to use when processing messages. // Default: null
|
|
|
* }>,
|
|
|
* failure_transport?: scalar|Param|null, // Transport name to send failed messages to (after all retries have failed). // Default: null
|
|
|
- * stop_worker_on_signals?: list<scalar|Param|null>,
|
|
|
+ * stop_worker_on_signals?: int|string|list<scalar|Param|null>,
|
|
|
* default_bus?: scalar|Param|null, // Default: null
|
|
|
* buses?: array<string, array{ // Default: {"messenger.bus.default":{"default_middleware":{"enabled":true,"allow_no_handlers":false,"allow_no_senders":true},"middleware":[]}}
|
|
|
* default_middleware?: bool|string|array{
|
|
|
@@ -461,8 +461,8 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* allow_no_handlers?: bool|Param, // Default: false
|
|
|
* allow_no_senders?: bool|Param, // Default: true
|
|
|
* },
|
|
|
- * middleware?: list<string|array{ // Default: []
|
|
|
- * id: scalar|Param|null,
|
|
|
+ * middleware?: string|list<string|array{ // Default: []
|
|
|
+ * id?: scalar|Param|null,
|
|
|
* arguments?: list<mixed>,
|
|
|
* }>,
|
|
|
* }>,
|
|
|
@@ -510,9 +510,9 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* retry_failed?: bool|array{
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
* retry_strategy?: scalar|Param|null, // service id to override the retry strategy. // Default: null
|
|
|
- * http_codes?: array<string, array{ // Default: []
|
|
|
+ * http_codes?: int|string|array<string, array{ // Default: []
|
|
|
* code?: int|Param,
|
|
|
- * methods?: list<string|Param>,
|
|
|
+ * methods?: string|list<string|Param>,
|
|
|
* }>,
|
|
|
* max_retries?: int|Param, // Default: 3
|
|
|
* delay?: int|Param, // Time in ms to delay (or the initial value when multiplier is used). // Default: 1000
|
|
|
@@ -563,9 +563,9 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* retry_failed?: bool|array{
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
* retry_strategy?: scalar|Param|null, // service id to override the retry strategy. // Default: null
|
|
|
- * http_codes?: array<string, array{ // Default: []
|
|
|
+ * http_codes?: int|string|array<string, array{ // Default: []
|
|
|
* code?: int|Param,
|
|
|
- * methods?: list<string|Param>,
|
|
|
+ * methods?: string|list<string|Param>,
|
|
|
* }>,
|
|
|
* max_retries?: int|Param, // Default: 3
|
|
|
* delay?: int|Param, // Time in ms to delay (or the initial value when multiplier is used). // Default: 1000
|
|
|
@@ -582,8 +582,8 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* transports?: array<string, scalar|Param|null>,
|
|
|
* envelope?: array{ // Mailer Envelope configuration
|
|
|
* sender?: scalar|Param|null,
|
|
|
- * recipients?: list<scalar|Param|null>,
|
|
|
- * allowed_recipients?: list<scalar|Param|null>,
|
|
|
+ * recipients?: string|list<scalar|Param|null>,
|
|
|
+ * allowed_recipients?: string|list<scalar|Param|null>,
|
|
|
* },
|
|
|
* headers?: array<string, string|array{ // Default: []
|
|
|
* value?: mixed,
|
|
|
@@ -634,8 +634,8 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* lock_factory?: scalar|Param|null, // The service ID of the lock factory used by this limiter (or null to disable locking). // Default: "auto"
|
|
|
* cache_pool?: scalar|Param|null, // The cache pool to use for storing the current limiter state. // Default: "cache.rate_limiter"
|
|
|
* storage_service?: scalar|Param|null, // The service ID of a custom storage implementation, this precedes any configured "cache_pool". // Default: null
|
|
|
- * policy: "fixed_window"|"token_bucket"|"sliding_window"|"compound"|"no_limit"|Param, // The algorithm to be used by this limiter.
|
|
|
- * limiters?: list<scalar|Param|null>,
|
|
|
+ * policy?: "fixed_window"|"token_bucket"|"sliding_window"|"compound"|"no_limit"|Param, // The algorithm to be used by this limiter.
|
|
|
+ * limiters?: string|list<scalar|Param|null>,
|
|
|
* limit?: int|Param, // The maximum allowed hits in a fixed interval or burst.
|
|
|
* 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).
|
|
|
* rate?: array{ // Configures the fill rate if "policy" is set to "token_bucket".
|
|
|
@@ -658,20 +658,20 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* allow_safe_elements?: bool|Param, // Allows "safe" elements and attributes. // Default: false
|
|
|
* allow_static_elements?: bool|Param, // Allows all static elements and attributes from the W3C Sanitizer API standard. // Default: false
|
|
|
* allow_elements?: array<string, mixed>,
|
|
|
- * block_elements?: list<string|Param>,
|
|
|
- * drop_elements?: list<string|Param>,
|
|
|
+ * block_elements?: string|list<string|Param>,
|
|
|
+ * drop_elements?: string|list<string|Param>,
|
|
|
* allow_attributes?: array<string, mixed>,
|
|
|
* drop_attributes?: array<string, mixed>,
|
|
|
* force_attributes?: array<string, array<string, string|Param>>,
|
|
|
* force_https_urls?: bool|Param, // Transforms URLs using the HTTP scheme to use the HTTPS scheme instead. // Default: false
|
|
|
- * allowed_link_schemes?: list<string|Param>,
|
|
|
- * allowed_link_hosts?: list<string|Param>|null,
|
|
|
+ * allowed_link_schemes?: string|list<string|Param>,
|
|
|
+ * allowed_link_hosts?: null|string|list<string|Param>,
|
|
|
* allow_relative_links?: bool|Param, // Allows relative URLs to be used in links href attributes. // Default: false
|
|
|
- * allowed_media_schemes?: list<string|Param>,
|
|
|
- * allowed_media_hosts?: list<string|Param>|null,
|
|
|
+ * allowed_media_schemes?: string|list<string|Param>,
|
|
|
+ * allowed_media_hosts?: null|string|list<string|Param>,
|
|
|
* allow_relative_medias?: bool|Param, // Allows relative URLs to be used in media source attributes (img, audio, video, ...). // Default: false
|
|
|
- * with_attribute_sanitizers?: list<string|Param>,
|
|
|
- * without_attribute_sanitizers?: list<string|Param>,
|
|
|
+ * with_attribute_sanitizers?: string|list<string|Param>,
|
|
|
+ * without_attribute_sanitizers?: string|list<string|Param>,
|
|
|
* max_input_length?: int|Param, // The maximum length allowed for the sanitized input. // Default: 0
|
|
|
* }>,
|
|
|
* },
|
|
|
@@ -679,7 +679,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
* message_bus?: scalar|Param|null, // The message bus to use. // Default: "messenger.default_bus"
|
|
|
* routing?: array<string, array{ // Default: []
|
|
|
- * service: scalar|Param|null,
|
|
|
+ * service?: scalar|Param|null,
|
|
|
* secret?: scalar|Param|null, // Default: ""
|
|
|
* }>,
|
|
|
* },
|
|
|
@@ -694,7 +694,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* dbal?: array{
|
|
|
* default_connection?: scalar|Param|null,
|
|
|
* types?: array<string, string|array{ // Default: []
|
|
|
- * class: scalar|Param|null,
|
|
|
+ * class?: scalar|Param|null,
|
|
|
* commented?: bool|Param, // Deprecated: The doctrine-bundle type commenting features were removed; the corresponding config parameter was deprecated in 2.0 and will be dropped in 3.0.
|
|
|
* }>,
|
|
|
* driver_schemes?: array<string, scalar|Param|null>,
|
|
|
@@ -910,7 +910,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* datetime_functions?: array<string, scalar|Param|null>,
|
|
|
* },
|
|
|
* filters?: array<string, string|array{ // Default: []
|
|
|
- * class: scalar|Param|null,
|
|
|
+ * class?: scalar|Param|null,
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
* parameters?: array<string, mixed>,
|
|
|
* }>,
|
|
|
@@ -958,7 +958,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* },
|
|
|
* password_hashers?: array<string, string|array{ // Default: []
|
|
|
* algorithm?: scalar|Param|null,
|
|
|
- * migrate_from?: list<scalar|Param|null>,
|
|
|
+ * migrate_from?: string|list<scalar|Param|null>,
|
|
|
* hash_algorithm?: scalar|Param|null, // Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms. // Default: "sha512"
|
|
|
* key_length?: scalar|Param|null, // Default: 40
|
|
|
* ignore_case?: bool|Param, // Default: false
|
|
|
@@ -972,36 +972,36 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* providers?: array<string, array{ // Default: []
|
|
|
* id?: scalar|Param|null,
|
|
|
* chain?: array{
|
|
|
- * providers?: list<scalar|Param|null>,
|
|
|
+ * providers?: string|list<scalar|Param|null>,
|
|
|
* },
|
|
|
* entity?: array{
|
|
|
- * class: scalar|Param|null, // The full entity class name of your user class.
|
|
|
+ * class?: scalar|Param|null, // The full entity class name of your user class.
|
|
|
* property?: scalar|Param|null, // Default: null
|
|
|
* manager_name?: scalar|Param|null, // Default: null
|
|
|
* },
|
|
|
* memory?: array{
|
|
|
* users?: array<string, array{ // Default: []
|
|
|
* password?: scalar|Param|null, // Default: null
|
|
|
- * roles?: list<scalar|Param|null>,
|
|
|
+ * roles?: string|list<scalar|Param|null>,
|
|
|
* }>,
|
|
|
* },
|
|
|
* ldap?: array{
|
|
|
- * service: scalar|Param|null,
|
|
|
- * base_dn: scalar|Param|null,
|
|
|
+ * service?: scalar|Param|null,
|
|
|
+ * base_dn?: scalar|Param|null,
|
|
|
* search_dn?: scalar|Param|null, // Default: null
|
|
|
* search_password?: scalar|Param|null, // Default: null
|
|
|
* extra_fields?: list<scalar|Param|null>,
|
|
|
- * default_roles?: list<scalar|Param|null>,
|
|
|
+ * default_roles?: string|list<scalar|Param|null>,
|
|
|
* role_fetcher?: scalar|Param|null, // Default: null
|
|
|
* uid_key?: scalar|Param|null, // Default: "sAMAccountName"
|
|
|
* filter?: scalar|Param|null, // Default: "({uid_key}={user_identifier})"
|
|
|
* password_attribute?: scalar|Param|null, // Default: null
|
|
|
* },
|
|
|
* }>,
|
|
|
- * firewalls: array<string, array{ // Default: []
|
|
|
+ * firewalls?: array<string, array{ // Default: []
|
|
|
* pattern?: scalar|Param|null,
|
|
|
* host?: scalar|Param|null,
|
|
|
- * methods?: list<scalar|Param|null>,
|
|
|
+ * methods?: string|list<scalar|Param|null>,
|
|
|
* security?: bool|Param, // Default: true
|
|
|
* user_checker?: scalar|Param|null, // The UserChecker to use when authenticating users in this firewall. // Default: "security.user_checker"
|
|
|
* request_matcher?: scalar|Param|null,
|
|
|
@@ -1020,8 +1020,8 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* path?: scalar|Param|null, // Default: "/logout"
|
|
|
* target?: scalar|Param|null, // Default: "/"
|
|
|
* invalidate_session?: bool|Param, // Default: true
|
|
|
- * clear_site_data?: list<"*"|"cache"|"cookies"|"storage"|"executionContexts"|Param>,
|
|
|
- * delete_cookies?: array<string, array{ // Default: []
|
|
|
+ * clear_site_data?: string|list<"*"|"cache"|"cookies"|"storage"|"executionContexts"|Param>,
|
|
|
+ * delete_cookies?: string|array<string, array{ // Default: []
|
|
|
* path?: scalar|Param|null, // Default: null
|
|
|
* domain?: scalar|Param|null, // Default: null
|
|
|
* secure?: scalar|Param|null, // Default: false
|
|
|
@@ -1056,9 +1056,9 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* user?: scalar|Param|null, // Default: "REMOTE_USER"
|
|
|
* },
|
|
|
* login_link?: array{
|
|
|
- * check_route: scalar|Param|null, // Route that will validate the login link - e.g. "app_login_link_verify".
|
|
|
+ * check_route?: scalar|Param|null, // Route that will validate the login link - e.g. "app_login_link_verify".
|
|
|
* check_post_only?: scalar|Param|null, // If true, only HTTP POST requests to "check_route" will be handled by the authenticator. // Default: false
|
|
|
- * signature_properties: list<scalar|Param|null>,
|
|
|
+ * signature_properties?: list<scalar|Param|null>,
|
|
|
* lifetime?: int|Param, // The lifetime of the login link in seconds. // Default: 600
|
|
|
* max_uses?: int|Param, // Max number of times a login link can be used - null means unlimited within lifetime. // Default: null
|
|
|
* used_link_cache?: scalar|Param|null, // Cache service id used to expired links of max_uses is set.
|
|
|
@@ -1159,14 +1159,14 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* success_handler?: scalar|Param|null,
|
|
|
* failure_handler?: scalar|Param|null,
|
|
|
* realm?: scalar|Param|null, // Default: null
|
|
|
- * token_extractors?: list<scalar|Param|null>,
|
|
|
- * token_handler: string|array{
|
|
|
+ * token_extractors?: string|list<scalar|Param|null>,
|
|
|
+ * token_handler?: string|array{
|
|
|
* id?: scalar|Param|null,
|
|
|
* oidc_user_info?: string|array{
|
|
|
- * 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).
|
|
|
+ * 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).
|
|
|
* discovery?: array{ // Enable the OIDC discovery.
|
|
|
* cache?: array{
|
|
|
- * id: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
|
|
|
+ * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
|
|
|
* },
|
|
|
* },
|
|
|
* claim?: scalar|Param|null, // Claim which contains the user identifier (e.g. sub, email, etc.). // Default: "sub"
|
|
|
@@ -1174,27 +1174,27 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* },
|
|
|
* oidc?: array{
|
|
|
* discovery?: array{ // Enable the OIDC discovery.
|
|
|
- * base_uri: list<scalar|Param|null>,
|
|
|
+ * base_uri?: string|list<scalar|Param|null>,
|
|
|
* cache?: array{
|
|
|
- * id: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
|
|
|
+ * id?: scalar|Param|null, // Cache service id to use to cache the OIDC discovery configuration.
|
|
|
* },
|
|
|
* },
|
|
|
* claim?: scalar|Param|null, // Claim which contains the user identifier (e.g.: sub, email..). // Default: "sub"
|
|
|
- * audience: scalar|Param|null, // Audience set in the token, for validation purpose.
|
|
|
- * issuers: list<scalar|Param|null>,
|
|
|
+ * audience?: scalar|Param|null, // Audience set in the token, for validation purpose.
|
|
|
+ * issuers?: list<scalar|Param|null>,
|
|
|
* algorithm?: array<mixed>,
|
|
|
- * algorithms: list<scalar|Param|null>,
|
|
|
+ * algorithms?: list<scalar|Param|null>,
|
|
|
* key?: scalar|Param|null, // Deprecated: The "key" option is deprecated and will be removed in 8.0. Use the "keyset" option instead. // JSON-encoded JWK used to sign the token (must contain a "kty" key).
|
|
|
* keyset?: scalar|Param|null, // JSON-encoded JWKSet used to sign the token (must contain a list of valid public keys).
|
|
|
* encryption?: bool|array{
|
|
|
* enabled?: bool|Param, // Default: false
|
|
|
* enforce?: bool|Param, // When enabled, the token shall be encrypted. // Default: false
|
|
|
- * algorithms: list<scalar|Param|null>,
|
|
|
- * keyset: scalar|Param|null, // JSON-encoded JWKSet used to decrypt the token (must contain a list of valid private keys).
|
|
|
+ * algorithms?: list<scalar|Param|null>,
|
|
|
+ * keyset?: scalar|Param|null, // JSON-encoded JWKSet used to decrypt the token (must contain a list of valid private keys).
|
|
|
* },
|
|
|
* },
|
|
|
* cas?: array{
|
|
|
- * validation_url: scalar|Param|null, // CAS server validation URL
|
|
|
+ * validation_url?: scalar|Param|null, // CAS server validation URL
|
|
|
* prefix?: scalar|Param|null, // CAS prefix // Default: "cas"
|
|
|
* http_client?: scalar|Param|null, // HTTP Client service // Default: null
|
|
|
* },
|
|
|
@@ -1217,7 +1217,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* remember_me?: array{
|
|
|
* secret?: scalar|Param|null, // Default: "%kernel.secret%"
|
|
|
* service?: scalar|Param|null,
|
|
|
- * user_providers?: list<scalar|Param|null>,
|
|
|
+ * user_providers?: string|list<scalar|Param|null>,
|
|
|
* catch_exceptions?: bool|Param, // Default: true
|
|
|
* signature_properties?: list<scalar|Param|null>,
|
|
|
* token_provider?: string|array{
|
|
|
@@ -1245,12 +1245,12 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* path?: scalar|Param|null, // Use the urldecoded format. // Default: null
|
|
|
* host?: scalar|Param|null, // Default: null
|
|
|
* port?: int|Param, // Default: null
|
|
|
- * ips?: list<scalar|Param|null>,
|
|
|
+ * ips?: string|list<scalar|Param|null>,
|
|
|
* attributes?: array<string, scalar|Param|null>,
|
|
|
* route?: scalar|Param|null, // Default: null
|
|
|
- * methods?: list<scalar|Param|null>,
|
|
|
+ * methods?: string|list<scalar|Param|null>,
|
|
|
* allow_if?: scalar|Param|null, // Default: null
|
|
|
- * roles?: list<scalar|Param|null>,
|
|
|
+ * roles?: string|list<scalar|Param|null>,
|
|
|
* }>,
|
|
|
* role_hierarchy?: array<string, string|list<scalar|Param|null>>,
|
|
|
* }
|
|
|
@@ -1271,7 +1271,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* auto_reload?: scalar|Param|null,
|
|
|
* optimizations?: int|Param,
|
|
|
* default_path?: scalar|Param|null, // The default path used to load templates. // Default: "%kernel.project_dir%/templates"
|
|
|
- * file_name_pattern?: list<scalar|Param|null>,
|
|
|
+ * file_name_pattern?: string|list<scalar|Param|null>,
|
|
|
* paths?: array<string, mixed>,
|
|
|
* date?: array{ // The default format options used by the date filter.
|
|
|
* format?: scalar|Param|null, // Default: "F j, Y H:i"
|
|
|
@@ -1299,7 +1299,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* use_microseconds?: scalar|Param|null, // Default: true
|
|
|
* channels?: list<scalar|Param|null>,
|
|
|
* handlers?: array<string, array{ // Default: []
|
|
|
- * type: scalar|Param|null,
|
|
|
+ * type?: scalar|Param|null,
|
|
|
* id?: scalar|Param|null,
|
|
|
* enabled?: bool|Param, // Default: true
|
|
|
* priority?: scalar|Param|null, // Default: 0
|
|
|
@@ -1386,7 +1386,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* delay_between_messages?: bool|Param, // Default: false
|
|
|
* topic?: int|Param, // Default: null
|
|
|
* factor?: int|Param, // Default: 1
|
|
|
- * tags?: list<scalar|Param|null>,
|
|
|
+ * tags?: string|list<scalar|Param|null>,
|
|
|
* 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.
|
|
|
* console_formatter_options?: mixed, // Default: []
|
|
|
* formatter?: scalar|Param|null,
|
|
|
@@ -1440,13 +1440,13 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* host?: scalar|Param|null,
|
|
|
* },
|
|
|
* from_email?: scalar|Param|null,
|
|
|
- * to_email?: list<scalar|Param|null>,
|
|
|
+ * to_email?: string|list<scalar|Param|null>,
|
|
|
* subject?: scalar|Param|null,
|
|
|
* content_type?: scalar|Param|null, // Default: null
|
|
|
* headers?: list<scalar|Param|null>,
|
|
|
* mailer?: scalar|Param|null, // Default: null
|
|
|
* email_prototype?: string|array{
|
|
|
- * id: scalar|Param|null,
|
|
|
+ * id?: scalar|Param|null,
|
|
|
* method?: scalar|Param|null, // Default: null
|
|
|
* },
|
|
|
* lazy?: bool|Param, // Default: true
|
|
|
@@ -1469,7 +1469,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* generate_final_entities?: bool|Param, // Default: false
|
|
|
* }
|
|
|
* @psalm-type WebpackEncoreConfig = array{
|
|
|
- * output_path: scalar|Param|null, // The path where Encore is building the assets - i.e. Encore.setOutputPath()
|
|
|
+ * output_path?: scalar|Param|null, // The path where Encore is building the assets - i.e. Encore.setOutputPath()
|
|
|
* crossorigin?: false|"anonymous"|"use-credentials"|Param, // crossorigin value when Encore.enableIntegrityHashes() is used, can be false (default), anonymous or use-credentials // Default: false
|
|
|
* preload?: bool|Param, // preload all rendered script and link tags automatically via the http2 Link header. // Default: false
|
|
|
* cache?: bool|Param, // Enable caching of the entry point file(s) // Default: false
|
|
|
@@ -1529,7 +1529,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|
|
* use_underscore?: bool|Param, // Default: true
|
|
|
* unordered_list_markers?: list<scalar|Param|null>,
|
|
|
* },
|
|
|
- * ...<mixed>
|
|
|
+ * ...<string, mixed>
|
|
|
* },
|
|
|
* }
|
|
|
* @psalm-type StimulusConfig = array{
|
|
|
@@ -1612,7 +1612,10 @@ final class App
|
|
|
*/
|
|
|
public static function config(array $config): array
|
|
|
{
|
|
|
- return AppReference::config($config);
|
|
|
+ /** @var ConfigType $config */
|
|
|
+ $config = AppReference::config($config);
|
|
|
+
|
|
|
+ return $config;
|
|
|
}
|
|
|
}
|
|
|
|