Closed rieschl closed 1 year ago
@driehle any feedback? Thanks 🙂
Try pulling doctrinemodule.cache.[name]
instead. DoctrineModule v6 already has a compatibility layer using laminas-cache instances and doctrine.cache.[name]
just a wrapper around that for doctrine/cache backward compatibility.
As I am writing this, I remember that there was some issue with the new method signatures of Doctrine's core classes. Could it be that CacheItemPoolInterface
is not provided by the Laminas package?
MongoDB ODM 2.2 deprecated
Doctrine\ODM\MongoDB\Configuration::getMetadataCacheImpl()
andDoctrine\ODM\MongoDB\Configuration::setMetadataCacheImpl()
in favor ofConfiguration::getMetadataCache
andConfiguration::setMetadataCache()
, respectively, which use a PSR-6 compliant cache instead of doctrine/cache.I refrained from allowing to pass a PSR-6
CacheItemPoolInterface
directly for now, because it's currently unlikely that a cache pulled fromdoctrine.cache.[name]
service key will return a PSR-6 cache. Such a change would probably also require changes in doctrine-module and doctrine-orm-module. But if you want me to implement that forward compatibility layer right away it's also ok for me.fixes #279