Skip to content

Commit 6c5a540

Browse files
committed
decrease exception normalizer priority
This makes it easier for custom normalizers to be executed before the one from FOSRestBundle as one would not need to specify a priority anymore.
1 parent 6cb0673 commit 6c5a540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/config/exception_listener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<service id="fos_rest.serializer.exception_normalizer.symfony" class="FOS\RestBundle\Serializer\Normalizer\ExceptionNormalizer" public="false">
4040
<argument type="service" id="fos_rest.exception.messages_map" /> <!-- exception messages -->
4141
<argument /><!-- show exception message -->
42-
<tag name="serializer.normalizer" />
42+
<tag name="serializer.normalizer" priority="-10" />
4343
</service>
4444
</services>
4545
</container>

0 commit comments

Comments
 (0)