@@ -67,7 +67,7 @@ to have different files depending on the environment you're working in. Typicall
67
67
this happens for local development or Continuous Integration where you might
68
68
want to have different files for your ``test `` and ``dev `` environments.
69
69
70
- You can use ``Dotenv::loadEnv() `` to ease this process for you ::
70
+ You can use ``Dotenv::loadEnv() `` to ease this process::
71
71
72
72
use Symfony\Component\Dotenv\Dotenv;
73
73
@@ -79,16 +79,16 @@ in the following order::
79
79
80
80
1. If ``.env `` exists, it is loaded first. In case there's no ``.env `` file but a
81
81
``.env.dist ``, this one will be loaded instead.
82
- 2. If one of the previously mentioned files contains the variable ``APP_ENV ``, the
83
- variable is populated and used to load environment specific files hereafter. If
82
+ 2. If one of the previously mentioned files contains the ``APP_ENV `` variable , the
83
+ variable is populated and used to load environment- specific files hereafter. If
84
84
``APP_ENV `` is not defined in either of the previously mentioned files, ``dev `` is
85
85
assumed for ``APP_ENV `` and populated by default.
86
- 3. If there's an ``.env.$env.local `` file, this one is loaded. Otherwise, it falls
86
+ 3. If there's a ``.env.$env.local `` file, this one is loaded. Otherwise, it falls
87
87
back to ``.env.$env ``.
88
- 4. If there's an ``env.local `` it's loaded last.
88
+ 4. If there's a ``. env.local `` it's loaded last.
89
89
90
90
This might look complicated at first glance but it gives you the opportunity to commit
91
- multiple environment specific files that can then be adjusted to your local environment
91
+ multiple environment- specific files that can then be adjusted to your local environment
92
92
easily. Given you commit ``.env ``, ``.env.test `` and ``.env.test `` to represent different
93
93
configuration settings for your environments, each of them can be adjusted by using
94
94
``.env.local ``, ``.env.test.local `` and ``.env.test.local `` respectively.
@@ -99,14 +99,14 @@ configuration settings for your environments, each of them can be adjusted by us
99
99
same results for everyone.
100
100
101
101
You can adjust the variable defining the environment, default environment and test
102
- environments by passing then as additional arguments to ``Dotenv::loadEnv() ``
102
+ environments by passing them as additional arguments to ``Dotenv::loadEnv() ``
103
103
(see :method: `Symfony\C omponent\D otenv::loadEnv ` for details).
104
104
105
105
.. versionadded :: 4.2
106
106
The ``Dotenv::loadEnv() `` method was introduced in Symfony 4.2.
107
107
108
108
You should never store a ``.env `` file in your code repository as it might
109
- contain sensitive information; create a ``.env.dist `` (or multiple environment
109
+ contain sensitive information; create a ``.env.dist `` (or multiple environment-
110
110
specific ones as shown above)) file with sensible defaults instead.
111
111
112
112
.. note ::
0 commit comments