Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8ad296

Browse files
authored
Update dotenv.rst
1 parente192330 commitc8ad296

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)

[8]ページ先頭

©2009-2025 Movatter.jp