Skip to content

Commit

Permalink
fix(symfony): wire Symfony JsonEncoder if it exists (#5240)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeahDude authored Nov 29, 2022
1 parent 892d4f5 commit 27af321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Bundle/Resources/config/jsonld.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

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

<tag name="serializer.encoder" />
</service>
Expand Down

0 comments on commit 27af321

Please sign in to comment.