10000 Update dotenv.rst · symfony/symfony-docs@c8ad296 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8ad296

Browse files
authored
Update dotenv.rst
1 parent e192330 commit c8ad296

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/dotenv.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ Access the value with ``getenv()`` in your code::
5858
$dbUser = getenv('DB_USER');
5959
// you can also use ``$_ENV`` or ``$_SERVER``
6060

61-
.. note::
62-
63-
Symfony Dotenv never overwrites existing environment variables.
61+
.. versionadded:: 4.1
62+
Passing ``true`` in ``Dotenv(true)`` constructor allow you to overwrite existing environment variables.
6463

6564
You should never store a ``.env`` file in your code repository as it might
6665
contain sensitive information; create a ``.env.dist`` file with sensible

0 commit comments

Comments
 (0)
0