From 92694338b616b5673c2f3a44d45a20367e7fd8fc Mon Sep 17 00:00:00 2001 From: Valentin Salmeron Date: Fri, 17 Apr 2026 11:10:30 +0200 Subject: [PATCH 1/2] Fix SyliusUiBundle compiler passes priority --- src/Sylius/Bundle/UiBundle/SyliusUiBundle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/UiBundle/SyliusUiBundle.php b/src/Sylius/Bundle/UiBundle/SyliusUiBundle.php index 8be33555b8..baca9f5661 100644 --- a/src/Sylius/Bundle/UiBundle/SyliusUiBundle.php +++ b/src/Sylius/Bundle/UiBundle/SyliusUiBundle.php @@ -25,7 +25,7 @@ final class SyliusUiBundle extends Bundle { public function build(ContainerBuilder $container): void { - $container->addCompilerPass(new LiveComponentTagPass(), priority: 500); - $container->addCompilerPass(new TwigComponentTagPass(), priority: 500); + $container->addCompilerPass(new LiveComponentTagPass(), priority: 50); + $container->addCompilerPass(new TwigComponentTagPass(), priority: 50); } } From 271a3bbc38b1b42ed795c4920a98d22d4c86c183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kali=C5=84ski?= Date: Mon, 15 Jun 2026 15:46:39 +0200 Subject: [PATCH 2/2] Update UPGRADE-2.2.md --- UPGRADE-2.2.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UPGRADE-2.2.md b/UPGRADE-2.2.md index d45ffbd206..714b260760 100644 --- a/UPGRADE-2.2.md +++ b/UPGRADE-2.2.md @@ -53,6 +53,14 @@ SYLIUS_TELEMETRY_SALT=your-custom-salt 1. The `Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface::updateFromReview()` method has been deprecated and will be removed in Sylius 3.0. Use state machine mechanism implemented by Symfony Workflow instead. +## Bahavior changes + +1. The `LiveComponentTagPass` and `TwigComponentTagPass` in `SyliusUiBundle` were registered with a priority of `500`, + which caused them to run before Symfony's autoconfiguration passes (priority `100`). + As a result, services tagged via `#[AutoconfigureTag]` or `registerForAutoconfiguration()` with the `sylius.twig_component` + or `sylius.live_component.*` tag did not receive the `twig.component` tag. + The priority has been lowered to `50` to ensure Symfony's autoconfiguration runs first. + ## Admin UI 1. A new `modal-portal.js` script has been added to `AdminBundle`.