Skip to content

Conversation

@schliesser
Copy link
Contributor

Introduce a new SymfonyOverload adapter that uses the $dotenv->overload()
method from the symfony/dotenv component.

Unlike the existing SymfonyDotEnv adapter, which uses $dotenv->load() and
preserves pre-existing environment variables, this adapter ensures that .env
variables take precedence by overwriting existing values.

Useful in development scenarios where system-level environment variables must
be overridden for specific projects.

Introduce a new `SymfonyOverload` adapter that uses the `$dotenv->overload()`
method from the `symfony/dotenv` component.

Unlike the existing `SymfonyDotEnv` adapter, which uses `$dotenv->load()` and
preserves pre-existing environment variables, this adapter ensures that `.env`
variables take precedence by overwriting existing values.

Useful in development scenarios where system-level environment variables must
be overridden for specific projects.
@schliesser
Copy link
Contributor Author

Closing in favor of #54 as we discussed.

@schliesser schliesser closed this Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant