Closed jakub-zawislak closed 6 years ago
Docs says:
This bundle registers a normalizer to serialize forms with errors into an array.
$serializer = $this->get('serializer'); $initialValues = $serializer->normalize($form);
but there is no "serializer" service registered. I see in services.yml that there is InitialValuesNormalizer
services.yml
InitialValuesNormalizer
<service id="liform.serializer.initial_values_normalizer" class="Limenius\Liform\Serializer\Normalizer\InitialValuesNormalizer" public="false"> <tag name="serializer.normalizer" priority="-10" /> </service>
but it is public="false" so I can't access it.
public="false"
I have eneded with this:
$normalizer = new \Limenius\Liform\Serializer\Normalizer\InitialValuesNormalizer(); $initialValues = $normalizer->normalize($form);
This was fixed in f96cd655e91eedd5588cd31291c6ba04b20a7f27
Docs says:
but there is no "serializer" service registered. I see in
services.yml
that there isInitialValuesNormalizer
but it is
public="false"
so I can't access it.I have eneded with this: