Skip to content

Commit 8299066

Browse files
committed
Minor reword
1 parent de957f7 commit 8299066

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

configuration/environments.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,16 @@ Selecting the Environment for Console Commands
178178

179179
By default, Symfony commands are executed in whatever environment is defined by
180180
the ``APP_ENV`` environment variable (usually configured in your ``.env`` file).
181-
You can override this by changing the value it before your command executes.
181+
In previous Symfony versions you could use the ``--env`` (and ``--no-debug``)
182+
command line options to override this value. However, those options were
183+
deprecated in Symfony 4.2.
182184

183-
.. versionadded:: 4.2
184-
In Symfony 4.2 the command line options ``--env`` and ``--no-debug`` have been deprecated.
185-
Use the environment variables ``APP_ENV`` to set the environment and ``APP_DEBUG`` (set
186-
to the value ``0``) to disable debugging instead.
185+
Use the ``APP_ENV`` (and ``APP_DEBUG``) environment variables to change the
186+
environment and the debug behavior of the commands:
187187

188188
.. code-block:: terminal
189189
190-
# 'dev' environment and debug enabled
190+
# Symfony's default: 'dev' environment and debug enabled
191191
$ php bin/console command_name
192192
193193
# 'prod' environment (debug is always disabled for 'prod')

0 commit comments

Comments
 (0)