Skip to content

Commit 33f756c

Browse files
greg0ireToflar
authored andcommitted
Various fixes
Co-Authored-By: Toflar <yanick.witschi@terminal42.ch>
1 parent 303d681 commit 33f756c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/dotenv.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ to have different files depending on the environment you're working in. Typicall
6767
this happens for local development or Continuous Integration where you might
6868
want to have different files for your ``test`` and ``dev`` environments.
6969

70-
You can use ``Dotenv::loadEnv()`` to ease this process for you::
70+
You can use ``Dotenv::loadEnv()`` to ease this process::
7171

7272
use Symfony\Component\Dotenv\Dotenv;
7373

@@ -79,16 +79,16 @@ in the following order::
7979

8080
1. If ``.env`` exists, it is loaded first. In case there's no ``.env`` file but a
8181
``.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
8484
``APP_ENV`` is not defined in either of the previously mentioned files, ``dev`` is
8585
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
8787
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.
8989

9090
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
9292
easily. Given you commit ``.env``, ``.env.test`` and ``.env.test`` to represent different
9393
configuration settings for your environments, each of them can be adjusted by using
9494
``.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
9999
same results for everyone.
100100

101101
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()``
103103
(see :method:`Symfony\Component\Dotenv::loadEnv` for details).
104104

105105
.. versionadded:: 4.2
106106
The ``Dotenv::loadEnv()`` method was introduced in Symfony 4.2.
107107

108108
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-
110110
specific ones as shown above)) file with sensible defaults instead.
111111

112112
.. note::

0 commit comments

Comments
 (0)