Skip to content

Commit 043b8fe

Browse files
committed
bug #13968 [FrameworkBundle] Fix regression introduced by #13107 (dunglas)
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle] Fix regression introduced by #13107 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a I've introduced a bug in 83b56f6. An error will be throw if the serializer is enabled but no cache is set. This is the fix. Commits ------- efadac0 [FrameworkBundle] Fix regression introduced by #13107
2 parents 74ec895 + efadac0 commit 043b8fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
<parameter key="serializer.class">Symfony\Component\Serializer\Serializer</parameter>
99
<parameter key="serializer.encoder.xml.class">Symfony\Component\Serializer\Encoder\XmlEncoder</parameter>
1010
<parameter key="serializer.encoder.json.class">Symfony\Component\Serializer\Encoder\JsonEncoder</parameter>
11+
<parameter key="serializer.mapping.cache.prefix" />
1112
</parameters>
1213

1314
<services>
14-
<service id="serializer" class="%serializer.class%" >
15+
<service id="serializer" class="%serializer.class%">
1516
<argument type="collection" />
1617
<argument type="collection" />
1718
</service>
@@ -43,10 +44,11 @@
4344
</service>
4445

4546
<!-- Encoders -->
46-
<service id="serializer.encoder.xml" class="%serializer.encoder.xml.class%" public="false" >
47+
<service id="serializer.encoder.xml" class="%serializer.encoder.xml.class%" public="false">
4748
<tag name="serializer.encoder" />
4849
</service>
49-
<service id="serializer.encoder.json" class="%serializer.encoder.json.class%" public="false" >
50+
51+
<service id="serializer.encoder.json" class="%serializer.encoder.json.class%" public="false">
5052
<tag name="serializer.encoder" />
5153
</service>
5254
</services>

0 commit comments

Comments
 (0)