Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SncRedis doesn't work with runtime environment variables #302

Copy link
Copy link
Closed
@luishdez

Description

@luishdez
Issue body actions

Currently SncRedis doesn't allow to use the new environment variables, apparently this bundle does something before the envs are setted. So you can't use redis_dsn: "%env(REDIS_DSN)%" because you receive that literal string instead the current env value.

Info: http://symfony.com/blog/new-in-symfony-3-2-runtime-environment-variables
PR: symfony/symfony#19681

In the PR there is a comment:

magnusnordlander commented on 20 Aug
This is an interesting approach, but it is not as backwards compatible as one would think. There are bundles out there today, which as a part of their extension actually manipulate parameters. SncRedisBundle e.g. splits DSNs in the extension. Passing one of these parameters there will at best cause some kind of syntax error in the bundle, or at worst cause old environment values to be cached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.