-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
Description
🐛 Problem Description
After upgrading to Symfony 7.4, my LiveComponent stops working only when validation constraints are added to its properties. It works perfectly without validation constraints.
The issue occurs only when APP_DEBUG=0
It looks like components using validation constraints (Assert, Uuid, etc.) are being excluded or inlined during container compilation.
🔎 Root Cause Suspected
When validation constraints are present, the component receives an additional tag:
validator.attribute_metadata
container.excluded (source: because it's a validator constraint extension)
When constraints are removed, the component works properly.
🔗 Possibly Linked to This PR
This behavior might be related to this change in Symfony 7.4 container compilation:
It seems related to how validator metadata affects service visibility and autoconfiguration.
ruudk and 0e85dc6eaf