Configuration::setMetadataCacheImpl
is deprecated since mongodb-odm 2.2
#279
Labels
Enhancement
New feature or request
Milestone
Hey!
The method
\Doctrine\ODM\MongoDB\Configuration::setMetadataCacheImpl
was deprecated inmonbodb-odm
2.2
.This package calls it in the ConfigurationFactory, though.
Are there plans to upgrade this package to avoid the deprecation warning? Should I have a look at it?
At first glance, the most simple fix would be wrapping the current cache implementation (
CacheAdapter::wrap($cacheImpl)
) and callsetMetadataCache()
instead ofsetMetadataCacheImpl()
. Maybe checking if the cache returned by$container->get($configurationOptions->getMetadataCache())
is already a PSR-6 cache, to be forward compatible.Thanks!
The text was updated successfully, but these errors were encountered: