craue / CraueConfigBundle

Database-stored settings made available via a service for your Symfony project.
MIT License
173 stars 35 forks source link

Doctrine Cache Provider in Symfony 4 #58

Closed shaunthornburgh closed 1 year ago

shaunthornburgh commented 3 years ago

Hi,

The configuration for using DoctrineCacheBundle seem to be for an older version of Symfony, please can you explain how to implement this in a Symfony 4 project?

# in app/config/config.yml
parameters:
  craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\DoctrineCacheBundleAdapter

doctrine_cache:
  providers:
    craue_config_cache:
      apc: ~
      namespace: craue_config
      aliases:
        - craue_config_cache_provider
craue commented 3 years ago

Please refer to the documentation of DoctrineCacheBundle. It's already deprecated and you should better use Symfony's Cache component.