Skip to content

Revert "feature #11802 [Process] allow writing "prepared" command line. (Simperfit)" #12769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,27 +368,6 @@ instead::
);
$process->run();

Using a Prepared Command Line
-----------------------------

You can run the process by using a a prepared command line using the
double bracket notation. You can use a placeholder in order to have a
process that can only be changed with the values and without changing
the PHP code::

use Symfony\Component\Process\Process;

$process = Process::fromShellCommandline('echo "$name"');
$process->run(null, ['name' => 'Elsa']);

.. caution::

A prepared command line will not be escaped automatically!

.. versionadded:: 4.4

Prepared command lines were introduced in Symfony 4.4.

Process Timeout
---------------

Expand Down