@@ -872,16 +872,14 @@ the env files ending in ``.local`` (``.env.local`` and ``.env.<environment>.loca
872
872
**should not be committed ** because only you will use them. In fact, the
873
873
``.gitignore `` file that comes with Symfony prevents them from being committed.
874
874
875
- Overriding Environment Values Defined By The System
876
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
875
+ Overriding Environment Variables Defined By The System
876
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
877
877
878
- You may need to override an environment value defined by the system. This can
879
- be done thanks to the :class: ` Symfony \\ Component \\ Dotenv \\ Dotenv ` class. The
878
+ If you need to override an environment variable defined by the system, use the
879
+ `` overrideExistingVars `` parameter defined by the
880
880
:method: `Symfony\\ Component\\ Dotenv\\ Dotenv::loadEnv `,
881
881
:method: `Symfony\\ Component\\ Dotenv\\ Dotenv::bootEnv `, and
882
- :method: `Symfony\\ Component\\ Dotenv\\ Dotenv::populate ` methods accept an optional
883
- ``overrideExistingVars `` parameter that allows you to override existing environment
884
- variables set by the system::
882
+ :method: `Symfony\\ Component\\ Dotenv\\ Dotenv::populate ` methods::
885
883
886
884
use Symfony\Component\Dotenv\Dotenv;
887
885
@@ -890,8 +888,8 @@ variables set by the system::
890
888
891
889
// ...
892
890
893
- This will override environment variables defined by the system
894
- and ** won't ** override environment variables defined in ``.env `` files.
891
+ This will override environment variables defined by the system but it ** won't **
892
+ override environment variables defined in ``.env `` files.
895
893
896
894
.. _configuration-env-var-in-prod :
897
895
0 commit comments