chore: supprimer les dépendances Twig/Stimulus/React/Turbo inutilisées

PHP : suppression de symfony/stimulus-bundle, ux-live-component, ux-react,
ux-turbo, twig/extra-bundle et symfony/form (plus utilisés depuis la
migration vers Vue.js SPA).

npm : suppression de @hotwired/stimulus, @hotwired/turbo, react, react-dom,
alpinejs, bootstrap, daisyui, sortablejs, vuedraggable et leurs types.
Corrige l'erreur de déploiement causée par vitest@^4.1.0 (introuvable)
requis par les anciens packages @symfony/ux-react et @symfony/ux-turbo v2.33.0.
This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2026-03-26 18:33:50 +01:00
parent c610d22bd2
commit 5f0178f784
10 changed files with 87 additions and 4495 deletions

View File

@@ -148,7 +148,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* cookie_name?: scalar|Param|null, // The name of the cookie to use when using stateless protection. // Default: "csrf-token"
* },
* form?: bool|array{ // Form configuration
* enabled?: bool|Param, // Default: true
* enabled?: bool|Param, // Default: false
* csrf_protection?: bool|array{
* enabled?: scalar|Param|null, // Default: null
* token_id?: scalar|Param|null, // Default: null
@@ -1765,73 +1765,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* script_attributes?: array<string, scalar|Param|null>,
* link_attributes?: array<string, scalar|Param|null>,
* }
* @psalm-type TwigComponentConfig = array{
* defaults?: array<string, string|array{ // Default: ["__deprecated__use_old_naming_behavior"]
* template_directory?: scalar|Param|null, // Default: "components"
* name_prefix?: scalar|Param|null, // Default: ""
* }>,
* anonymous_template_directory?: scalar|Param|null, // Defaults to `components`
* profiler?: bool|array{ // Enables the profiler for Twig Component
* enabled?: bool|Param, // Default: "%kernel.debug%"
* collect_components?: bool|Param, // Collect components instances // Default: true
* },
* controllers_json?: scalar|Param|null, // Deprecated: The "twig_component.controllers_json" config option is deprecated, and will be removed in 3.0. // Default: null
* }
* @psalm-type LiveComponentConfig = array{
* secret?: scalar|Param|null, // The secret used to compute fingerprints and checksums // Default: "%kernel.secret%"
* fetch_credentials?: "same-origin"|"include"|"omit"|Param, // The default fetch credentials mode for all Live Components ('same-origin', 'include', 'omit') // Default: "same-origin"
* }
* @psalm-type StimulusConfig = array{
* controller_paths?: list<scalar|Param|null>,
* controllers_json?: scalar|Param|null, // Default: "%kernel.project_dir%/assets/controllers.json"
* }
* @psalm-type TwigExtraConfig = array{
* cache?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* html?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* markdown?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* intl?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* cssinliner?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* inky?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* string?: bool|array{
* enabled?: bool|Param, // Default: false
* },
* commonmark?: array{
* renderer?: array{ // Array of options for rendering HTML.
* block_separator?: scalar|Param|null,
* inner_separator?: scalar|Param|null,
* soft_break?: scalar|Param|null,
* },
* html_input?: "strip"|"allow"|"escape"|Param, // How to handle HTML input.
* allow_unsafe_links?: bool|Param, // Remove risky link and image URLs by setting this to false. // Default: true
* max_nesting_level?: int|Param, // The maximum nesting level for blocks. // Default: 9223372036854775807
* max_delimiters_per_line?: int|Param, // The maximum number of strong/emphasis delimiters per line. // Default: 9223372036854775807
* slug_normalizer?: array{ // Array of options for configuring how URL-safe slugs are created.
* instance?: mixed,
* max_length?: int|Param, // Default: 255
* unique?: mixed,
* },
* commonmark?: array{ // Array of options for configuring the CommonMark core extension.
* enable_em?: bool|Param, // Default: true
* enable_strong?: bool|Param, // Default: true
* use_asterisk?: bool|Param, // Default: true
* use_underscore?: bool|Param, // Default: true
* unordered_list_markers?: list<scalar|Param|null>,
* },
* ...<mixed>
* },
* }
* @psalm-type MercureConfig = array{
* hubs?: array<string, array{ // Default: []
* url?: scalar|Param|null, // URL of the hub's publish endpoint // Default: null
@@ -1853,26 +1786,12 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* default_cookie_lifetime?: int|Param, // Default lifetime of the cookie containing the JWT, in seconds. Defaults to the value of "framework.session.cookie_lifetime". // Default: null
* enable_profiler?: bool|Param, // Deprecated: The child node "enable_profiler" at path "mercure.enable_profiler" is deprecated. // Enable Symfony Web Profiler integration.
* }
* @psalm-type TurboConfig = array{
* broadcast?: bool|array{
* enabled?: bool|Param, // Default: true
* entity_template_prefixes?: list<scalar|Param|null>,
* doctrine_orm?: bool|array{ // Enable the Doctrine ORM integration
* enabled?: bool|Param, // Default: true
* },
* },
* default_transport?: scalar|Param|null, // Default: "default"
* }
* @psalm-type DamaDoctrineTestConfig = array{
* enable_static_connection?: mixed, // Default: true
* enable_static_meta_data_cache?: bool|Param, // Default: true
* enable_static_query_cache?: bool|Param, // Default: true
* connection_keys?: list<mixed>,
* }
* @psalm-type ReactConfig = array{
* controllers_path?: scalar|Param|null, // The path to the directory where React controller components are stored - relevant only when using symfony/asset-mapper. // Default: "%kernel.project_dir%/assets/react/controllers"
* name_glob?: list<scalar|Param|null>,
* }
* @psalm-type VichUploaderConfig = array{
* default_filename_attribute_suffix?: scalar|Param|null, // Default: "_name"
* db_driver?: scalar|Param|null,
@@ -1924,13 +1843,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* api_platform?: ApiPlatformConfig,
* monolog?: MonologConfig,
* webpack_encore?: WebpackEncoreConfig,
* twig_component?: TwigComponentConfig,
* live_component?: LiveComponentConfig,
* stimulus?: StimulusConfig,
* twig_extra?: TwigExtraConfig,
* mercure?: MercureConfig,
* turbo?: TurboConfig,
* react?: ReactConfig,
* vich_uploader?: VichUploaderConfig,
* "when@dev"?: array{
* imports?: ImportsConfig,
@@ -1948,13 +1861,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* zenstruck_foundry?: ZenstruckFoundryConfig,
* monolog?: MonologConfig,
* webpack_encore?: WebpackEncoreConfig,
* twig_component?: TwigComponentConfig,
* live_component?: LiveComponentConfig,
* stimulus?: StimulusConfig,
* twig_extra?: TwigExtraConfig,
* mercure?: MercureConfig,
* turbo?: TurboConfig,
* react?: ReactConfig,
* vich_uploader?: VichUploaderConfig,
* },
* "when@prod"?: array{
@@ -1970,13 +1877,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* api_platform?: ApiPlatformConfig,
* monolog?: MonologConfig,
* webpack_encore?: WebpackEncoreConfig,
* twig_component?: TwigComponentConfig,
* live_component?: LiveComponentConfig,
* stimulus?: StimulusConfig,
* twig_extra?: TwigExtraConfig,
* mercure?: MercureConfig,
* turbo?: TurboConfig,
* react?: ReactConfig,
* vich_uploader?: VichUploaderConfig,
* },
* "when@test"?: array{
@@ -1994,14 +1895,8 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* zenstruck_foundry?: ZenstruckFoundryConfig,
* monolog?: MonologConfig,
* webpack_encore?: WebpackEncoreConfig,
* twig_component?: TwigComponentConfig,
* live_component?: LiveComponentConfig,
* stimulus?: StimulusConfig,
* twig_extra?: TwigExtraConfig,
* mercure?: MercureConfig,
* turbo?: TurboConfig,
* dama_doctrine_test?: DamaDoctrineTestConfig,
* react?: ReactConfig,
* vich_uploader?: VichUploaderConfig,
* },
* ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias