Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 687b915

Browse filesBrowse files
committed
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
1 parent 0db3a92 commit 687b915
Copy full SHA for 687b915

File tree

1 file changed

+8
-3
lines changed
Filter options

1 file changed

+8
-3
lines changed

‎components/process.rst

Copy file name to clipboardExpand all lines: components/process.rst
+8-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.