Skip to content

Commit 81b4157

Browse files
bug symfony#31418 [FrameworkBundle] clarify the possible class/interface of the cache (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] clarify the possible class/interface of the cache | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | When the fallback cache pool is returned (on PHP 5.6, HHVM, or when Opcache is disabled), the configured service can be any implementation of the CacheItemPoolInterface. Commits ------- 4027374 clarify the possible class/interface of the cache
2 parents 9ce27da + 4027374 commit 81b4157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<tag name="kernel.cache_warmer" />
8383
</service>
8484

85-
<service id="serializer.mapping.cache.symfony" class="Symfony\Component\Cache\Adapter\PhpArrayAdapter">
85+
<service id="serializer.mapping.cache.symfony" class="Psr\Cache\CacheItemPoolInterface">
8686
<factory class="Symfony\Component\Cache\Adapter\PhpArrayAdapter" method="create" />
8787
<argument>%serializer.mapping.cache.file%</argument>
8888
<argument type="service" id="cache.serializer" />

0 commit comments

Comments
 (0)