Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Point to jms_serializer rather than serializer
Browse files Browse the repository at this point in the history
If one is running two serializers in a symfony project (JMS and the default one), then serializer will most likely not point to the JMS one.

That's why it would be better to point it to jms_serializer in this config rather than using the alias.
  • Loading branch information
jrmyio authored Jul 21, 2017
1 parent 039884f commit 8ba0960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/config/resource-rest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<services>

<service id="cmf_resource_rest.controller.resource" class="Symfony\Cmf\Bundle\ResourceRestBundle\Controller\ResourceController">
<argument type="service" id="serializer" />
<argument type="service" id="jms_serializer" />
<argument type="service" id="cmf_resource.registry" />
<argument type="service" id="cmf_resource_rest.serializer.jms.handler.resource" />
<argument type="service" id="security.authorization_checker" on-invalid="ignore" />
Expand Down

0 comments on commit 8ba0960

Please sign in to comment.