[FrameworkBundle] Reuse PropertyAccessor service for ObjectNormalizer
This commit is contained in:
parent
d209d1c35a
commit
256d441b21
@ -55,8 +55,10 @@
|
|||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- CoreExtension -->
|
<!-- CoreExtension -->
|
||||||
|
<service id="form.property_accessor" alias="property_accessor" public="false" />
|
||||||
|
|
||||||
<service id="form.type.form" class="Symfony\Component\Form\Extension\Core\Type\FormType">
|
<service id="form.type.form" class="Symfony\Component\Form\Extension\Core\Type\FormType">
|
||||||
<argument type="service" id="property_accessor"/>
|
<argument type="service" id="form.property_accessor" />
|
||||||
<tag name="form.type" alias="form" />
|
<tag name="form.type" alias="form" />
|
||||||
</service>
|
</service>
|
||||||
<service id="form.type.birthday" class="Symfony\Component\Form\Extension\Core\Type\BirthdayType">
|
<service id="form.type.birthday" class="Symfony\Component\Form\Extension\Core\Type\BirthdayType">
|
||||||
|
@ -17,9 +17,13 @@
|
|||||||
<argument type="collection" />
|
<argument type="collection" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<service id="serializer.property_accessor" alias="property_accessor" public="false" />
|
||||||
|
|
||||||
<!-- Normalizer -->
|
<!-- Normalizer -->
|
||||||
<service id="serializer.normalizer.object" class="Symfony\Component\Serializer\Normalizer\ObjectNormalizer" public="false">
|
<service id="serializer.normalizer.object" class="Symfony\Component\Serializer\Normalizer\ObjectNormalizer" public="false">
|
||||||
<argument type="service" id="serializer.mapping.class_metadata_factory" />
|
<argument type="service" id="serializer.mapping.class_metadata_factory" />
|
||||||
|
<argument>null</argument>
|
||||||
|
<argument type="service" id="serializer.property_accessor" />
|
||||||
|
|
||||||
<!-- Run after all custom serializers -->
|
<!-- Run after all custom serializers -->
|
||||||
<tag name="serializer.normalizer" priority="-1000" />
|
<tag name="serializer.normalizer" priority="-1000" />
|
||||||
|
Reference in New Issue
Block a user