Skip to content

Commit 4d8a2a0

Browse files
committed
Applied comments from our great reviewer
1 parent 363e38f commit 4d8a2a0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

components/console/helpers/debug_formatter.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ DebugFormatter Helper
99

1010
The :class:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper` provides
1111
functions to output debug information when running an external program, for
12-
instance a process or HTTP request. It is included in the default helper set,
13-
which you can get by calling
14-
:method:`Symfony\\Component\\Console\\Command\\Command::getHelperSet`::
12+
instance a process or HTTP request. It is included in the default helper set
13+
and you can get it by calling
14+
:method:`Symfony\\Component\\Console\\Command\\Command::getHelper`::
1515

1616
$debugFormatter = $this->getHelper('debug_formatter');
1717

1818
The formatter only formats strings, which you can use to output to the console,
19-
but also to log the information or anything else.
19+
but also to log the information or do anything else.
2020

21-
All methods of this helper have an identifier as the first argument. This is an
21+
All methods of this helper have an identifier as the first argument. This is a
2222
unique value for each program. This way, the helper can debug information for
2323
multiple programs at the same time. When using the
2424
:doc:`Process component </components/process>`, you probably want to use
2525
:phpfunction:`spl_object_hash`.
2626

2727
.. tip::
2828

29-
This information is often too verbose to show by default. You can use
29+
This information is often too verbose to be shown by default. You can use
3030
:ref:`verbosity levels <verbosity-levels>` to only show it when in
3131
debugging mode (``-vvv``).
3232

@@ -80,15 +80,15 @@ And this in case of failure:
8080
The third argument is a boolean which tells the function if the output is error
8181
output or not. When ``true``, the output is considered error output.
8282

83-
The fourth and fifth argument allow you to override the prefix for respectively
84-
the normal output and error output.
83+
The fourth and fifth argument allow you to override the prefix for the normal
84+
output and error output respectively.
8585

8686
Stopping a Program
8787
------------------
8888

8989
When a program is stopped, you can use
90-
:method:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper::progress`
91-
to notify this to the users::
90+
:method:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper::run` to
91+
notify this to the users::
9292

9393
// ...
9494
$output->writeln($debugFormatter->progress(spl_object_hash($process), 'Some command description', $process->isSuccesfull()));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy