|
707 | 707 | * id?: scalar|Param|null, |
708 | 708 | * type?: scalar|Param|null, |
709 | 709 | * value?: mixed, |
| 710 | + * ...<string, mixed> |
710 | 711 | * }>, |
711 | 712 | * autoescape_service?: scalar|Param|null, // Default: null |
712 | 713 | * autoescape_service_method?: scalar|Param|null, // Default: null |
|
795 | 796 | * iconify?: bool|array{ // Configuration for the remote icon service. |
796 | 797 | * enabled?: bool|Param, // Default: true |
797 | 798 | * on_demand?: bool|Param, // Whether to download icons "on demand". // Default: true |
| 799 | + * auto_lock?: bool|Param, // Persist "on demand" icons to the local icon directory (see "icon_dir"). Recommended in dev only. Requires "on_demand" to be enabled. // Default: false |
798 | 800 | * endpoint?: scalar|Param|null, // The endpoint for the Iconify icons API. // Default: "https://api.iconify.design" |
799 | 801 | * }, |
800 | 802 | * ignore_not_found?: bool|Param, // Ignore error when an icon is not found. Set to 'true' to fail silently. // Default: false |
|
820 | 822 | * trim?: bool|Param, // Trim whitespace (default) // Default: false |
821 | 823 | * invalid_message?: scalar|Param|null, // Invalid message (default) // Default: "The password is invalid." |
822 | 824 | * } |
| 825 | + * @psalm-type NowoHotReloadConfig = array{ |
| 826 | + * enabled?: bool|Param, // Master switch. When false, nothing is injected even if FRANKENPHP_HOT_RELOAD is set. // Default: true |
| 827 | + * auto_inject?: bool|Param, // When true, HotReloadResponseSubscriber injects assets into HTML responses. // Default: true |
| 828 | + * require_frankenphp_env?: bool|Param, // When true (default), inject only if FRANKENPHP_HOT_RELOAD is set or mercure_url is configured. // Default: true |
| 829 | + * allow_production?: bool|Param, // When false (default), enabling this bundle in the prod environment raises InvalidConfigurationException. // Default: false |
| 830 | + * mercure_url?: scalar|Param|null, // Optional Mercure hub URL. When null, uses $_SERVER['FRANKENPHP_HOT_RELOAD'] when present. // Default: null |
| 831 | + * idiomorph?: bool|Param, // When true, include Idiomorph for DOM morphing instead of a full page reload. // Default: true |
| 832 | + * idiomorph_script_url?: scalar|Param|null, // URL of the Idiomorph script (classic script tag). Prefer a version-pinned CDN URL. // Default: "https://cdn.jsdelivr.net/npm/idiomorph@0.7.4" |
| 833 | + * hot_reload_script_url?: scalar|Param|null, // URL of the frankenphp-hot-reload ESM module. Prefer a version-pinned CDN URL. // Default: "https://cdn.jsdelivr.net/npm/frankenphp-hot-reload@1.0.1/+esm" |
| 834 | + * preserve_selectors?: list<scalar|Param|null>, |
| 835 | + * preserve_observe?: bool|Param, // When true, the preserve boot script also uses MutationObserver for late-injected toolbar nodes. // Default: true |
| 836 | + * csp_nonce_request_attribute?: scalar|Param|null, // Request attribute name that holds the CSP nonce (e.g. "_csp_nonce"). Applied to the inline preserve boot script. // Default: null |
| 837 | + * csp_augment_script_src?: bool|Param, // When true, append CDN hosts to an existing Content-Security-Policy script-src on the response after injection. // Default: true |
| 838 | + * csp_script_src_hosts?: list<scalar|Param|null>, |
| 839 | + * } |
823 | 840 | * @psalm-type NowoTwigInspectorConfig = array{ |
824 | 841 | * enabled_extensions?: list<scalar|Param|null>, |
825 | 842 | * excluded_templates?: list<scalar|Param|null>, |
|
854 | 871 | * ux_icons?: UxIconsConfig, |
855 | 872 | * web_profiler?: WebProfilerConfig, |
856 | 873 | * nowo_password_toggle?: NowoPasswordToggleConfig, |
| 874 | + * nowo_hot_reload?: NowoHotReloadConfig, |
857 | 875 | * nowo_twig_inspector?: NowoTwigInspectorConfig, |
858 | 876 | * debug?: DebugConfig, |
859 | 877 | * }, |
|
877 | 895 | * ux_icons?: UxIconsConfig, |
878 | 896 | * web_profiler?: WebProfilerConfig, |
879 | 897 | * nowo_password_toggle?: NowoPasswordToggleConfig, |
| 898 | + * nowo_hot_reload?: NowoHotReloadConfig, |
880 | 899 | * nowo_twig_inspector?: NowoTwigInspectorConfig, |
881 | 900 | * }, |
882 | 901 | * ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias |
|
0 commit comments