From 3ca7875b1de0b1cbd56c92bbc671899297986ea0 Mon Sep 17 00:00:00 2001 From: Juan Traverso Date: Sun, 16 Jun 2013 12:40:39 +0200 Subject: [PATCH 1/3] [Process] Doc for output flush methods. --- components/process.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/process.rst b/components/process.rst index 6c7c9205454..b0ec4d9788b 100644 --- a/components/process.rst +++ b/components/process.rst @@ -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()``, +``getAndFlushIncrementalOutput()``, ``getAndFlushErrorOutput()`` and ``getAndFlushIncrementalErrorOutput()`` +returns the outputs as well. + Getting real-time Process Output -------------------------------- From f9f20e5523c4c600c7aa3c8bbcb187e84efe1910 Mon Sep 17 00:00:00 2001 From: Juan Traverso Date: Sun, 16 Jun 2013 13:58:42 +0200 Subject: [PATCH 2/3] [Process] Rewriting to avoid wrong sentences. --- components/process.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/process.rst b/components/process.rst index b0ec4d9788b..afc9e85c98b 100644 --- a/components/process.rst +++ b/components/process.rst @@ -46,13 +46,16 @@ and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput` methods returns the new outputs since the last call. .. versionadded:: 2.4 - The ``getAndFlushOutput()``, ``getAndFlushIncrementalOutput()``, ``getAndFlushErrorOutput()``, ` + 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()``, -``getAndFlushIncrementalOutput()``, ``getAndFlushErrorOutput()`` and ``getAndFlushIncrementalErrorOutput()`` -returns the outputs as well. +The :method:`Symfony\\Component\\Process\\Process::flushOutput()` method flushes the contents of the output and +and :method:`Symfony\\Component\\Process\\Process::flushErrorOutput()` the content of the error output. You can get the +contents and flush the whole output or the error output by using :method:`Symfony\\Component\\Process\\Process::getAndFlushOutput()` +and :method:`Symfony\\Component\\Process\\Process::getAndFlushErrorOutput()` methods, or the outputs since the last call +by using the :method:`Symfony\\Component\\Process\\Process::getAndFlushIncrementalOutput()` and +:method:`Symfony\\Component\\Process\\Process::getAndFlushIncrementalErrorOutput()` methods. Getting real-time Process Output -------------------------------- From 8b0611ab3e615edbfc6bd7c011549f5c7e737ea4 Mon Sep 17 00:00:00 2001 From: Juan Traverso Date: Fri, 9 Aug 2013 16:59:47 +0200 Subject: [PATCH 3/3] [Process] Update docs for modifications. --- components/process.rst | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/process.rst b/components/process.rst index afc9e85c98b..f05e6c70ca4 100644 --- a/components/process.rst +++ b/components/process.rst @@ -46,16 +46,10 @@ 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. + The ``flushOutput()`` and ``flushErrorOutput()`` methods were added in Symfony 2.4. The :method:`Symfony\\Component\\Process\\Process::flushOutput()` method flushes the contents of the output and -and :method:`Symfony\\Component\\Process\\Process::flushErrorOutput()` the content of the error output. You can get the -contents and flush the whole output or the error output by using :method:`Symfony\\Component\\Process\\Process::getAndFlushOutput()` -and :method:`Symfony\\Component\\Process\\Process::getAndFlushErrorOutput()` methods, or the outputs since the last call -by using the :method:`Symfony\\Component\\Process\\Process::getAndFlushIncrementalOutput()` and -:method:`Symfony\\Component\\Process\\Process::getAndFlushIncrementalErrorOutput()` methods. +and :method:`Symfony\\Component\\Process\\Process::flushErrorOutput()` the content of the error output. Getting real-time Process Output --------------------------------