Skip to content

Commit 4027374

Browse files
committed
clarify the possible class/interface of the cache
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.
1 parent 75d1dd4 commit 4027374

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)