skip to Main Content

Redis – How to inject a specific cache pool?

In my Symfony 5 application I want to use different caches for different tasks and of course for different environments. e.g. my configuration looks like this: framework: cache: pools: cache.auth: adapter: cache.adapter.redis provider: app.my_custom_redis_provider cache.sap: adapter: cache.adapter.redis provider: app.my_custom_redis_provider services:…

VIEW QUESTION

Doctrine PHP 8 Attributes – PHP Versions

I use PHP8, Symfony 5.2 and Doctrine 3.0 in my project, But the PHP 8 attributes, allowed since Doctrine 2.9, doesn't seem to work. use DoctrineORMMappingEntity; ** * @Entity(repositoryClass="AppRepositoryMyClassRepository") */ class MyClass { works fine. use DoctrineORMMappingEntity; #[Entity(repositoryClass: MyClassRepository::class)] class…

VIEW QUESTION
Back To Top
Search