File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ a command in a sub-process::
36
36
The component takes care of the subtle differences between the different platforms
37
37
when executing the command.
38
38
39
+ Getting real-time Process Output
40
+ --------------------------------
41
+
39
42
When executing a long running command (like rsync-ing files to a remote
40
43
server), you can give feedback to the end user in real-time by passing an
41
44
anonymous function to the
@@ -54,7 +57,10 @@ anonymous function to the
54
57
55
58
.. versionadded :: 2.1
56
59
The non-blocking feature was added in 2.1.
57
-
60
+
61
+ Running Processes Asynchronously
62
+ --------------------------------
63
+
58
64
You can also start the subprocess and then let it run asynchronously, retrieving
59
65
output and the status in your main process whenever you need it. Use the
60
66
:method: `Symfony\\ Component\\ Process\\ Process::start ` method to start an asynchronous
@@ -87,6 +93,9 @@ are done doing other stuff::
87
93
}
88
94
});
89
95
96
+ Executing PHP Code in Isolation
97
+ -------------------------------
98
+
90
99
If you want to execute some PHP code in isolation, use the ``PhpProcess ``
91
100
instead::
92
101
You can’t perform that action at this time.
0 commit comments