Skip to content

Commit fbf6313

Browse files
committed
[#1693] Minor tweaks
1 parent 4f99fe1 commit fbf6313

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

cookbook/console/usage.rst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,26 @@ How to use the Console
66

77
The :doc:`/components/console/usage` page of the components documentation looks
88
at the global console options. When you use the console as part of the full
9-
stack framework some additional global options are available as well.
9+
stack framework, some additional global options are available as well.
1010

11-
By default console commands run in the ``dev`` environment, you may want
11+
By default, console commands run in the ``dev`` environment and you may want
1212
to change this for some commands. For example, you may want to run some commands
13-
in the ``prod`` environment for performance reasons. The result of some commands
14-
will be different depending on the environment, for example, the ``cache:clear``
15-
command will clear and warm the cache for the specified environment only so to
13+
in the ``prod`` environment for performance reasons. Also, the result of some commands
14+
will be different depending on the environment. for example, the ``cache:clear``
15+
command will clear and warm the cache for the specified environment only. To
1616
clear and warm the ``prod`` cache you need to run:
1717

1818
.. code-block:: bash
1919
2020
$ php app/console cache:clear --env=prod
21+
22+
or the equivalent:
23+
24+
.. code-block:: bash
25+
2126
$ php app/console cache:clear -e=prod
2227
23-
As well as changing the environment you can also choose to disable debug mode.
28+
In addition to changing the environment, you can also choose to disable debug mode.
2429
This can be useful where you want to run commands in the ``dev`` environment
2530
but avoid the performance hit of collecting debug data:
2631

@@ -50,11 +55,11 @@ When using the shell you can choose to run each command in a separate process:
5055
$ php app/console --shell --process-isolation
5156
$ php app/console -s --process-isolation
5257
53-
When you do this the output will not be colorized and interactivity is not
58+
When you do this, the output will not be colorized and interactivity is not
5459
supported so you will need to pass all command params explicitly.
5560

5661
.. note::
5762

5863
Unless you are using isolated processes, clearing the cache in the shell
5964
will not have an effect on subsequent commands you run. This is because
60-
the original cached files will still be being used.
65+
the original cached files are still being used.

cookbook/map.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* **Console Commands**
2828

2929
* :doc:`/cookbook/console/console_command`
30+
* :doc:`/cookbook/console/usage`
3031

3132
* :doc:`/cookbook/controller/index`
3233

0 commit comments

Comments
 (0)