Skip to content

Commit 2e95e18

Browse files
committed
[#2504] Adding some better headers to the Process component
1 parent 425ca69 commit 2e95e18

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

components/process.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ a command in a sub-process::
3636
The component takes care of the subtle differences between the different platforms
3737
when executing the command.
3838

39+
Getting real-time Process Output
40+
--------------------------------
41+
3942
When executing a long running command (like rsync-ing files to a remote
4043
server), you can give feedback to the end user in real-time by passing an
4144
anonymous function to the
@@ -54,7 +57,10 @@ anonymous function to the
5457
5558
.. versionadded:: 2.1
5659
The non-blocking feature was added in 2.1.
57-
60+
61+
Running Processes Asynchronously
62+
--------------------------------
63+
5864
You can also start the subprocess and then let it run asynchronously, retrieving
5965
output and the status in your main process whenever you need it. Use the
6066
:method:`Symfony\\Component\\Process\\Process::start` method to start an asynchronous
@@ -87,6 +93,9 @@ are done doing other stuff::
8793
}
8894
});
8995

96+
Executing PHP Code in Isolation
97+
-------------------------------
98+
9099
If you want to execute some PHP code in isolation, use the ``PhpProcess``
91100
instead::
92101

0 commit comments

Comments
 (0)