Skip to content

Commit 5a3c1f6

Browse files
committed
minor #10774 Add real-world example to separate flags and value (holtkamp)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #10774). Discussion ---------- Add real-world example to separate flags and value Also see symfony/symfony#29573 Commits ------- 526b7a7 Add real-world example to separate flags and value
2 parents 75b22d9 + 526b7a7 commit 5a3c1f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/process.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ with a non-zero code)::
111111
saves you from any escaping and allows sending signals seamlessly
112112
(e.g. to stop processes before completion.)::
113113

114-
$process = new Process(['/path/command', '--flag', 'arg 1', 'etc.']);
114+
$process = new Process(['/path/command', '--option', 'argument', 'etc.']);
115+
$process = new Process(['/path/to/php', '--define', 'memory_limit=1024M', '/path/to/script.php']);
115116

116117
If you need to use stream redirections, conditional execution, or any other
117118
feature provided by the shell of your operating system, you can also define

0 commit comments

Comments
 (0)