SncRedisBundle: [Bug] DSN is not interpolated at runtime with environment variable
Hello,
I just upgraded from 2.0.6 to 2.1.0 and my app broke because the DSN was not updated.
It looks like the issue is similar to https://github.com/snc/SncRedisBundle/issues/302.
I checked my cache and the value of the config is hard-coded instead of using the env variable.
Here is my config :
snc_redis:
clients:
default:
type: predis
alias: default
dsn: "%env(REDIS_DSN)%"
session:
client: default
prefix: session
Am I missing something ?
In the meantime I moved back to 2.0.6 and everything is back to normal.
Let me know for anything and thanks for your help.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 21 (4 by maintainers)
Merged & resolved conflicts @ https://github.com/snc/SncRedisBundle/commits/2.1
FYI, I am working on a fix 😉
Let me know if you need anything
I’m sorry but I’ve just tried reproducing the issue in every possible way, with both phpredis and Predis, in a Symfony 4 project with SncRedisBundle 2.1.0, and it’s all just working as it should. This still indicates the only reason I saw it once could’ve been because of lingering cache.
I’m marking this as not reproducible until I can debug a failing case.