Skip to content

[FEATURE] Add SymfonyOverload adapter - #53

Closed
schliesser wants to merge 1 commit into
helhum:mainfrom
schliesser:feature/symfony-dotenv-overload
Closed

schliesser wants to merge 1 commit into
helhum:mainfrom
schliesser:feature/symfony-dotenv-overload

Conversation

@schliesser

Copy link
Copy Markdown
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
Copy Markdown
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