8000 Document the DotEnv::overload() method by fmata · Pull Request #9568 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Document the DotEnv::overload() method #9568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update dotenv.rst
  • Loading branch information
fmata authored Jul 9, 2018
commit 63257596de58fbc4ad5c248b03a8fa019a00a3b3
4 changes: 2 additions & 2 deletions components/dotenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Access the value with ``getenv()`` in your code::
$dbUser = getenv('DB_USER');
// you can also use ``$_ENV`` or ``$_SERVER``

.. versionadded:: 4.1
Passing ``true`` in ``Dotenv(true)`` constructor allow you to overwrite existing environment variables.
.. versionadded:: 4.2
Passing ``true`` in ``Dotenv()`` constructor allow you to overwrite existing environment variables.

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