Description
This page https://symfony.com/doc/4.4/reference/configuration/framework.html#validation
indicate:
cache
type: string
The service that is used to persist class metadata in a cache. The service has to implement the CacheInterface.
Set this option to validator.mapping.cache.doctrine.apc to use the APC cache provided by the Doctrine project.
this is wrong two times:
APC
is discontinued, APCu-bc provide a compatibility layer but "As of PHP 8.0.0, apcu-bc is no longer supported" (source)- doctrine cache is deprecated and will no longer receive bug fixes from the Doctrine Project (source)
So the documentation should not stipulate:
Set this option to validator.mapping.cache.doctrine.apc to use the APC cache provided by the Doctrine project.
What the doc should stipulate?
Honestly, I don't know (I'm in the process of migrating to php 8 and so out of apcu-bc and validator.mapping.cache.doctrine.apc
:/)
NB: I don't know if the doc is just out of date or if symfony still uses doctrine's APC cache.