Skip to content

Commit 526b7a7

Browse files
holtkampjaviereguiluz
authored andcommitted
Add real-world example to separate flags and value
Also see symfony/symfony#29573
1 parent 75b22d9 commit 526b7a7

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)