Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Dotenv] Tell component to override #26846

Closed
@natebrunette

Description

@natebrunette
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.3.2

We use this component in development with Docker. We like to put defaults for environment variables in the Docker config, but we let developers override those values in the .env file. After switching to the Symfony component, we realized that those overrides were no longer happening.

The Dotenv class could accept an optional flag that would tell it if it should override system environment variables. It could default to false to maintain BC.

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