Skip to content

Commit

Permalink
clarify the possible class/interface of the cache
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xabbuh committed May 8, 2019
1 parent 75d1dd4 commit 4027374
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -82,7 +82,7 @@
<tag name="kernel.cache_warmer" />
</service>

<service id="serializer.mapping.cache.symfony" class="Symfony\Component\Cache\Adapter\PhpArrayAdapter">
<service id="serializer.mapping.cache.symfony" class="Psr\Cache\CacheItemPoolInterface">
<factory class="Symfony\Component\Cache\Adapter\PhpArrayAdapter" method="create" />
<argument>%serializer.mapping.cache.file%</argument>
<argument type="service" id="cache.serializer" />
Expand Down

0 comments on commit 4027374

Please sign in to comment.