Skip to content

Commit 76032cf

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Command] Helpers uses `stderr` by default
2 parents ac73d17 + 04ec225 commit 76032cf

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

components/console/helpers/processhelper.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ In case the process fails, debugging is easier:
3131
.. image:: /_images/components/console/process-helper-error-debug.png
3232
:alt: The last line shows "RES 127 Command dit not run successfully", and the output lines show more the error information from the command.
3333

34+
.. note::
35+
36+
By default, the process helper uses the error output (``stderr``) as
37+
its default output. This behavior can be changed by passing an instance of
38+
:class:`Symfony\\Component\\Console\\Output\\StreamOutput` to the
39+
:method:`Symfony\\Component\\Console\\Helper\\ProcessHelper::run`
40+
method.
41+
3442
Arguments
3543
---------
3644

components/console/helpers/progressbar.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ number of units, and advance the progress as the command executes::
4444
``$progress->advance()`` with a negative value. For example, if you call
4545
``$progress->advance(-2)`` then it will regress the progress bar 2 steps.
4646

47+
.. note::
48+
49+
By default, the progress bar helper uses the error output (``stderr``) as
50+
its default output. This behavior can be changed by passing an instance of
51+
:class:`Symfony\\Component\\Console\\Output\\StreamOutput` to the
52+
:class:`Symfony\\Component\\Console\\Helper\\ProgressBar`
53+
constructor.
54+
4755
Instead of advancing the bar by a number of steps (with the
4856
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::advance` method),
4957
you can also set the current progress by calling the

components/console/helpers/questionhelper.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ the second argument is not provided, ``true`` is assumed.
7272

7373
The regex defaults to ``/^y/i``.
7474

75+
.. note::
76+
77+
By default, the question helper uses the error output (``stderr``) as
78+
its default output. This behavior can be changed by passing an instance of
79+
:class:`Symfony\\Component\\Console\\Output\\StreamOutput` to the
80+
:method:`Symfony\\Component\\Console\\Helper\\QuestionHelper::ask`
81+
method.
82+
7583
Asking the User for Information
7684
-------------------------------
7785

0 commit comments

Comments
 (0)