8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e192330 commit c8ad296Copy full SHA for c8ad296
components/dotenv.rst
@@ -58,9 +58,8 @@ Access the value with ``getenv()`` in your code::
58
$dbUser = getenv('DB_USER');
59
// you can also use ``$_ENV`` or ``$_SERVER``
60
61
-.. note::
62
-
63
- Symfony Dotenv never overwrites existing environment variables.
+.. versionadded:: 4.1
+ Passing ``true`` in ``Dotenv(true)`` constructor allow you to overwrite existing environment variables.
64
65
You should never store a ``.env`` file in your code repository as it might
66
contain sensitive information; create a ``.env.dist`` file with sensible
0 commit comments