File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,16 @@ Selecting the Environment for Console Commands
178
178
179
179
By default, Symfony commands are executed in whatever environment is defined by
180
180
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.
182
184
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:
187
187
188
188
.. code-block :: terminal
189
189
190
- # 'dev' environment and debug enabled
190
+ # Symfony's default: 'dev' environment and debug enabled
191
191
$ php bin/console command_name
192
192
193
193
# 'prod' environment (debug is always disabled for 'prod')
You can’t perform that action at this time.
0 commit comments