From af9f3fb00e067a002f46a3311fe3e7f7303288d0 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 28 Nov 2017 15:36:31 -0500 Subject: [PATCH] removing a tiny chapter --- _build/redirection_map | 3 ++- console.rst | 10 ++++++++++ console/usage.rst | 20 -------------------- 3 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 console/usage.rst diff --git a/_build/redirection_map b/_build/redirection_map index c3d1883329e..1f58f295f34 100644 --- a/_build/redirection_map +++ b/_build/redirection_map @@ -122,7 +122,8 @@ /cookbook/console/logging /console/logging /cookbook/console/request_context /console/request_context /cookbook/console/style /console/style -/cookbook/console/usage /console/usage +/cookbook/console/usage /console +/console/usage /console /cookbook/controller/csrf_token_validation /controller/csrf_token_validation /cookbook/controller/error_pages /controller/error_pages /cookbook/controller/forwarding /controller/forwarding diff --git a/console.rst b/console.rst index 3ec442a8e1c..af1881f2c5d 100644 --- a/console.rst +++ b/console.rst @@ -9,6 +9,16 @@ The Symfony framework provides lots of commands through the ``bin/console`` scri created with the :doc:`Console component `. You can also use it to create your own commands. +The Console: APP_ENV & APP_DEBUG +--------------------------------- + +Console commands run in the :ref:`environment ` defined in the ``APP_ENV`` +variable of the ``.env`` file, which is ``dev`` by default. It also reads the ``APP_DEBUG`` +value to turn "debug" mode on or off (it defaults to ``1``, which is on). + +To run the command in another environment or debug mode, edit the value of ``APP_ENV`` +and ``APP_DEBUG``. + Creating a Command ------------------ diff --git a/console/usage.rst b/console/usage.rst deleted file mode 100644 index 3575737dd3b..00000000000 --- a/console/usage.rst +++ /dev/null @@ -1,20 +0,0 @@ -.. index:: - single: Console; Usage - -How to Use the Console -====================== - -The :doc:`/components/console/usage` page of the components documentation looks -at the global console options. When you use the console as part of the full-stack -framework, some additional global options are available as well. - -Console commands run in the environment defined in the ``APP_ENV`` variable of -the ``.env`` file, which is ``dev`` by default. The result of some commands will -be different depending on the environment (e.g. the ``cache:clear`` command -clears the cache for the given environment only). To run the command in other -environment, edit the value of ``APP_ENV``. - -In addition to changing the environment, you can also choose to disable debug -mode. This can be useful where you want to run commands in the ``dev`` -environment but avoid the performance hit of collecting debug data. To do that, -set the value of the ``APP_DEBUG`` env var to ``0`` in the same ``.env`` file.