You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact, this is not quite enough - you should be able to add any cache implementing the Doctrine Cache interface.
Unfortunately, this is not possible because of how the CacheFactory configuration works by pulling tagged services in the DI Extension instead of a proper Compiler Pass, where it would respect tagged services from other bundles. This is done in order to get the configuration from the factories early on in the process, but kind of defeats the purpose of both the Cache interface and of container extensibility by using tags.
Allowing CacheFactories to add their own config like it is done in the SecurityBundle's addSecurityListenerFactory() might be cleaner and more flexible.
Alternative quick fix: Adding a "service" CacheFactory that allows specifying a custom service id implementing the Doctrine Cache interface.
The text was updated successfully, but these errors were encountered: