Skip to content

Commit 083ae8f

Browse files
committed
Update LiveComponentHydrator definition to allow missing Serializer reference
1 parent e502400 commit 083ae8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function (ChildDefinition $definition, AsLiveComponent $attribute) {
101101
tagged_iterator(LiveComponentBundle::HYDRATION_EXTENSION_TAG),
102102
new Reference('property_accessor'),
103103
new Reference('ux.live_component.metadata_factory'),
104-
new Reference('serializer'),
104+
new Reference('serializer', ContainerInterface::NULL_ON_INVALID_REFERENCE),
105105
'%kernel.secret%',
106106
])
107107
;

0 commit comments

Comments
 (0)