From 05544114ce9caafa6f5c0521e0f56e1e6292789d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kali=C5=84ski?= Date: Mon, 10 Aug 2026 13:38:47 +0200 Subject: [PATCH 1/2] Allow compatibility with symfony/ux-live-component and symfony/ux-twig-component v3.0 --- composer.json | 4 ++-- src/BootstrapAdminUi/composer.json | 2 +- src/TwigExtra/composer.json | 2 +- src/TwigHooks/composer.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 991ec97d..e4abf453 100644 --- a/composer.json +++ b/composer.json @@ -39,8 +39,8 @@ "symfony/twig-bundle": "^6.4 || ^7.4 || ^8.0", "symfony/ux-autocomplete": "^2.17", "symfony/ux-icons": "^2.20", - "symfony/ux-live-component": "^2.17", - "symfony/ux-twig-component": "^2.17", + "symfony/ux-live-component": "^2.17 || ^3.0", + "symfony/ux-twig-component": "^2.17 || ^3.0", "twig/twig": "^2.15 || ^3.0", "webmozart/assert": "^1.9" }, diff --git a/src/BootstrapAdminUi/composer.json b/src/BootstrapAdminUi/composer.json index f264af7e..92b8256e 100644 --- a/src/BootstrapAdminUi/composer.json +++ b/src/BootstrapAdminUi/composer.json @@ -17,7 +17,7 @@ "symfony/stimulus-bundle": "^2.17", "symfony/ux-autocomplete": "^2.17", "symfony/ux-icons": "^2.20", - "symfony/ux-live-component": "^2.17" + "symfony/ux-live-component": "^2.17 || ^3.0" }, "require-dev": { "doctrine/doctrine-bundle": "^2.13 || ^3.0 || ^4.0", diff --git a/src/TwigExtra/composer.json b/src/TwigExtra/composer.json index 0352930c..2856b2a6 100644 --- a/src/TwigExtra/composer.json +++ b/src/TwigExtra/composer.json @@ -17,7 +17,7 @@ "php": "^8.1", "symfony/http-kernel": "^6.4 || ^7.4 || ^8.0", "symfony/twig-bundle": "^6.4 || ^7.4 || ^8.0", - "symfony/ux-twig-component": "^2.17" + "symfony/ux-twig-component": "^2.17 || ^3.0" }, "require-dev": { "matthiasnoback/symfony-dependency-injection-test": "^6.1.0", diff --git a/src/TwigHooks/composer.json b/src/TwigHooks/composer.json index 4bd963dd..6317603d 100644 --- a/src/TwigHooks/composer.json +++ b/src/TwigHooks/composer.json @@ -21,8 +21,8 @@ "symfony/expression-language": "^6.4 || ^7.4 || ^8.0", "symfony/http-kernel": "^6.4 || ^7.4 || ^8.0", "symfony/stopwatch": "^6.4 || ^7.4 || ^8.0", - "symfony/ux-live-component": "^2.17", - "symfony/ux-twig-component": "^2.17", + "symfony/ux-live-component": "^2.17 || ^3.0", + "symfony/ux-twig-component": "^2.17 || ^3.0", "symfony/twig-bundle": "^6.4 || ^7.4 || ^8.0", "twig/twig": "^2.15 || ^3.0", "webmozart/assert": "^1.9" From 1a80c580377c6f6e43b003ab943da5b304666eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kali=C5=84ski?= Date: Tue, 11 Aug 2026 13:33:06 +0200 Subject: [PATCH 2/2] Set default component directory for Twig components --- config/packages/twig.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index f299b5cb..4da9c856 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -3,6 +3,8 @@ twig: twig_component: anonymous_template_directory: 'components/' + defaults: + App\Twig\Component\: 'components/' when@test: twig: