Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using deprecated methods #280

Merged
merged 2 commits into from
Oct 15, 2023

Commits on Oct 10, 2023

  1. Avoid using deprecated methods

    MongoDB ODM 2.2 deprecated `Doctrine\ODM\MongoDB\Configuration::getMetadataCacheImpl()` and `Doctrine\ODM\MongoDB\Configuration::setMetadataCacheImpl()` in favor of Configuration::getMetadataCache and `Configuration::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 from `doctrine.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.
    If you want me to implement that forward compatibility layer right away it's also ok for me.
    
    Signed-off-by: Thomas Rieschl <[email protected]>
    rieschl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0a90469 View commit details
    Browse the repository at this point in the history
  2. adapt for changes in laminas-stdlib 3.18.0

    Signed-off-by: Thomas Rieschl <[email protected]>
    rieschl committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    aeadd0e View commit details
    Browse the repository at this point in the history