Skip to content

Conversation

@schliesser
Copy link
Contributor

This adds an option to override existing environment variables with values from the .env file by setting the DOTENV_CONNECTOR_OVERRIDE environment variable.

The implementation uses the overload() method in the SymfonyDotEnv adapter and the corresponding parameter in the SymfonyLoadEnv adapter.

schliesser and others added 2 commits September 4, 2025 10:29
This adds an option to override existing environment variables with values from the `.env` file by setting the `DOTENV_CONNECTOR_OVERRIDE` environment variable.

The implementation uses the `overload()` method in the `SymfonyDotEnv` adapter and the corresponding parameter in the `SymfonyLoadEnv` adapter.
Also get rid of prophecy in new tests
and make sure test files follow code style
@helhum helhum force-pushed the feature/override-option branch from 3b2c896 to 39eb431 Compare September 4, 2025 09:22
Copy link
Owner

@helhum helhum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@helhum helhum merged commit 4b143e3 into helhum:main Sep 4, 2025
14 checks passed
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.

2 participants