Bug/problem in symfony live components hydrating value objects
I had some troubles using value objects as LiveProps, and this seemed to be an upstream issue of Symfony Live Components:
https://github.com/symfony/ux/issues/152
I worked around this issue by adding these lines to services.yml
:
Symfony\UX\LiveComponent\PropertyHydratorInterface:
class: Symfony\UX\LiveComponent\Hydrator\NormalizerBridgePropertyHydrator
arguments:
- '@Symfony\Component\Serializer\Normalizer\NormalizerInterface'
But if the problem gets solved upstream, I need to remove this workaround.