diff --git a/components/dotenv.rst b/components/dotenv.rst index fae35a5b5f2..0d23cb12507 100644 --- a/components/dotenv.rst +++ b/components/dotenv.rst @@ -66,8 +66,12 @@ You should never store a ``.env`` file in your code repository as it might contain sensitive information; create a ``.env.dist`` file with sensible defaults instead. -Symfony Dotenv should only be used in development/testing/staging environments. -For production environments, use "real" environment variables. +.. note:: + + Symfony Dotenv can be used in any environment of your application: + development, testing, staging and even production. However, in production + it's recommended to configure real environment variables to avoid the + performance overhead of parsing the ``.env`` file for every request. As a ``.env`` file is a regular shell script, you can ``source`` it in your own shell scripts: