Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Process] allow writing "prepared" command line.#11802

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Simperfit wants to merge1 commit intosymfony:4.4fromSimperfit:patch-8
Closed
Changes fromall 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
13 changes: 13 additions & 0 deletionscomponents/process.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -350,6 +350,19 @@ instead::
);
$process->run();

Using a Prepared Command Line
--------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should the same length as the title itself to be valid

OskarStark reacted with thumbs up emoji

This component also provides a way to use the process command with prepared using the double brackets notations:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

missing word afterwith prepared

OskarStark reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

double bracket notation

OskarStark reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What does "double bracket notation" mean?

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

use a placeholder?

OskarStark reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

PHP

OskarStark reacted with thumbs up emoji
The component will not escape the characters, you are responsible of doing so::

use Symfony\Component\Process\Process;

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


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

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp