Skip to content

Commit f5a4f2e

Browse files
committed
[LiveComponent] use "full" serializer for NormalizerBridgePropertyHydrator
1 parent 4f56882 commit f5a4f2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ function (ChildDefinition $definition, AsLiveComponent $attribute) {
6262

6363
$container->register('ux.live_component.doctrine_entity_property_hydrator', DoctrineEntityPropertyHydrator::class)
6464
->setArguments([[new Reference('doctrine')]])
65-
->addTag('twig.component.property_hydrator', ['priority' => -200])
65+
->addTag('twig.component.property_hydrator', ['priority' => -100])
6666
;
6767

68-
$container->register('ux.live_component.datetime_property_hydrator', NormalizerBridgePropertyHydrator::class)
69-
->setArguments([new Reference('serializer.normalizer.datetime')])
70-
->addTag('twig.component.property_hydrator', ['priority' => -100])
68+
$container->register('ux.live_component.serializer_property_hydrator', NormalizerBridgePropertyHydrator::class)
69+
->setArguments([new Reference('serializer')])
70+
->addTag('twig.component.property_hydrator', ['priority' => -200])
7171
;
7272

7373
$container->register('ux.live_component.component_hydrator', LiveComponentHydrator::class)

0 commit comments

Comments
 (0)