-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[WCM] [Process] Doc for output flush methods. #2728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,15 @@ output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getInc | |
and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput` | ||
methods returns the new outputs since the last call. | ||
|
||
.. versionadded:: 2.4 | ||
The ``getAndFlushOutput()``, ``getAndFlushIncrementalOutput()``, ``getAndFlushErrorOutput()``, ` | ||
``getAndFlushIncrementalErrorOutput()``, ``flushOutput()`` and ``flushErrorOutput()`` methods were | ||
added in Symfony 2.4. | ||
|
||
These methods clears the output and error output buffers. Also, ``getAndFlushOutput()``, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think 'these' references to the method used in the versionadded directive. You can't do that, the versionadded directive will be removed when the version is deprecated and that means we get wrong sentences. Also, please use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok @wouterj, thank you for your feedback! |
||
``getAndFlushIncrementalOutput()``, ``getAndFlushErrorOutput()`` and ``getAndFlushIncrementalErrorOutput()`` | ||
returns the outputs as well. | ||
|
||
Getting real-time Process Output | ||
-------------------------------- | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the backtick at the end of this line should get removed