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

Skip to content

[WebServerBundle] Environment variables are not reloaded when the .env file was changed #23723

Closed
@voronkovich

Description

@voronkovich
Q A
Bug report? yes
Symfony version 4.0

I think this problem occurs because when the server is started (see https://github.com/symfony/recipes/blob/master/symfony/console/3.3/bin/console#L20), the .env file is loaded and then, loaded variables cannot be overridden, because a Dotenv component doesn't override the existing ones.
We could solve this issue by adding an ability to Dotenv component to override the existing environment variables.

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