Skip to content

Commit 27af321

Browse files
authored
fix(symfony): wire Symfony JsonEncoder if it exists (api-platform#5240)
1 parent 892d4f5 commit 27af321

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/Resources/config/jsonld.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
<service id="api_platform.jsonld.encoder" class="ApiPlatform\Serializer\JsonEncoder" public="false">
4747
<argument>jsonld</argument>
48+
<argument type="service" id="serializer.json.encoder" on-invalid="null" />
4849

4950
<tag name="serializer.encoder" />
5051
</service>

0 commit comments

Comments
 (0)