We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17170ed commit c3447ebCopy full SHA for c3447eb
components/process.rst
@@ -350,6 +350,19 @@ instead::
350
);
351
$process->run();
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
366
Process Timeout
367
---------------
368
0 commit comments