Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[DI][FrameworkBundle] Allow overriding existing env vars withEnvVarLoaderInterface #17700

Closed
@faizanakram99

Description

@faizanakram99

Description

EnvVarLoaderInterface is a nice way of providing env vars dynamically, it is particularly useful for multi-tenant apps where env vars likeDATABASE_URL can be loaded from an external vault.

This commentsymfony/symfony#34295 (comment) has a nice example of its usage.

The latest best practices of Symfony recommend to add default env vars to.env file, it doesn't work well with multi-tenant setup whereDATABASE_URL can be different for each tenant as theEnvVarLoader won't override existing env vars which were loaded from .env file, hence the "feature request", can we add possibility of overriding existing env vars inEnvVarLoaders ?

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp