Skip to content

Commit 7be4890

Browse files
Revert "feature symfony#11802 [Process] allow writing "prepared" command line. (Simperfit)"
This reverts commit a316cd5, reversing changes made to cdc0bb7.
1 parent 410acb6 commit 7be4890

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

components/process.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -368,27 +368,6 @@ instead::
368368
);
369369
$process->run();
370370

371-
Using a Prepared Command Line
372-
-----------------------------
373-
374-
You can run the process by using a a prepared command line using the
375-
double bracket notation. You can use a placeholder in order to have a
376-
process that can only be changed with the values and without changing
377-
the PHP code::
378-
379-
use Symfony\Component\Process\Process;
380-
381-
$process = Process::fromShellCommandline('echo "$name"');
382-
$process->run(null, ['name' => 'Elsa']);
383-
384-
.. caution::
385-
386-
A prepared command line will not be escaped automatically!
387-
388-
.. versionadded:: 4.4
389-
390-
Prepared command lines were introduced in Symfony 4.4.
391-
392371
Process Timeout
393372
---------------
394373

0 commit comments

Comments
 (0)