8000 feature #6648 Process: callbacks now allowed when output disabled (av… · symfony/symfony-docs@dc9ff35 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc9ff35

Browse files
committed
feature #6648 Process: callbacks now allowed when output disabled (avindra)
This PR was merged into the 3.1 branch. Discussion ---------- Process: callbacks now allowed when output disabled This is a recent change in 3.1 added by @romainneutron Callbacks are allowed even if output is disabled Related issue: symfony/symfony#17427 Commits ------- 687b915 Process: callbacks now allowed when output disabled
2 parents 4238c27 + 687b915 commit dc9ff35

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

components/process.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,14 @@ Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and
302302
You can not enable or disable the output while the process is running.
303303

304304
If you disable the output, you cannot access ``getOutput``,
305-
``getIncrementalOutput``, ``getErrorOutput`` or ``getIncrementalErrorOutput``.
306-
Moreover, you could not pass a callback to the ``start``, ``run`` or ``mustRun``
307-
methods or use ``setIdleTimeout``.
305+
``getIncrementalOutput``, ``getErrorOutput``, ``getIncrementalErrorOutput`` or
306+
``setIdleTimeout``.
307+
308+
However, it is possible to pass a callback to the ``start``, ``run`` or ``mustRun``
309+
methods to handle process output in a streaming fashion.
310+
311+
.. versionadded:: 3.1
312+
The ability to pass a callback to these methods when output is disabled was added in Symfony 3.1.
308313

309314
.. _`Symfony Issue#5759`: https://github.com/symfony/symfony/issues/5759
310315
.. _`PHP Bug#39992`: https://bugs.php.net/bug.php?id=39992

0 commit comments

Comments
 (0)
0