Skip to content

Commit 88ef89c

Browse files
committed
[FrameworkBundle][Serializer] Fix APC cache service name and deprecate old name
1 parent 3a165e5 commit 88ef89c

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

UPGRADE-3.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ FrameworkBundle
8383
- `"form.type.submit"`
8484
- `"form.type.reset"`
8585

86+
* The service `serializer.mapping.cache.apc` has been deprecated in favor of
87+
`serializer.mapping.cache.doctrine.apc` to be consistent with the validator
88+
cache service. If you are using `serializer.mapping.cache.apc`, use
89+
`serializer.mapping.cache.doctrine.apc` instead.
90+
8691
HttpKernel
8792
----------
8893

UPGRADE-4.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ FrameworkBundle
7575
- `"form.type.submit"`
7676
- `"form.type.reset"`
7777

78+
* The service `serializer.mapping.cache.apc` has been removed; use
79+
`serializer.mapping.cache.doctrine.apc` instead.
80+
7881
HttpKernel
7982
----------
8083

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ CHANGELOG
77
* Added `Controller::json` to simplify creating JSON responses when using the Serializer component
88
* Deprecated absolute template paths support in the template name parser
99
* Deprecated using core form types without dependencies as services
10-
* added `Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector`
10+
* Added `Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector`
11+
* Deprecated service `serializer.mapping.cache.apc` (use `serializer.mapping.cache.doctrine.apc` instead)
1112

1213
3.0.0
1314
-----

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,16 @@
3838
</service>
3939

4040
<!-- Cache -->
41-
<service id="serializer.mapping.cache.apc" class="Doctrine\Common\Cache\ApcCache" public="false">
41+
<service id="serializer.mapping.cache.doctrine.apc" class="Doctrine\Common\Cache\ApcCache" public="false">
4242
<call method="setNamespace">
4343
<argument>%serializer.mapping.cache.prefix%</argument>
4444
</call>
4545
</service>
4646

47+
<service id="serializer.mapping.cache.apc" parent="serializer.mapping.cache.doctrine.apc">
48+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0. Use "serializer.mapping.cache.doctrine.apc" instead</deprecated>
49+
</service>
50+
4751
<!-- Encoders -->
4852
<service id="serializer.encoder.xml" class="Symfony\Component\Serializer\Encoder\XmlEncoder" public="false">
4953
<tag name="serializer.encoder" />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy