File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Original file line number Diff line number Diff line change @@ -350,6 +350,19 @@ instead::
350
350
);
351
351
$process->run();
352
352
353
+ Using a Prepared Command Line
354
+ --------------------------------
355
+
356
+ This component also provides a way to use the process command with prepared using the double brackets notations:
357
+ Which means that you can use placeholder in order to have a process that can be changed only with the values and without changing the php code.
358
+ The component will not escape the characters, you are responsible of doing so::
359
+
360
+ use Symfony\Component\Process\Process;
361
+
362
+ $process = Process::fromShellCommandline('echo "$name"');
363
+ $process->run(null, ['name' => 'elsa']);
364
+
365
+
353
366
Process Timeout
354
367
---------------
355
368
You can’t perform that action at this time.
0 commit comments