Skip to content
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

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

Closed
wants to merge 1 commit into from

Conversation

Simperfit
Copy link
Contributor

dunglas added a commit to symfony/symfony that referenced this pull request Feb 19, 2018
…nes (Simperfit)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[Process] Allow writing portable "prepared" command lines

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23778
| License       | MIT
| Doc PR        | symfony/symfony-docs#9295

This give the opportunity to create process commands that allow to changes only the values instead of changing the code.

Commits
-------

d1e4f48 [Process] Allow writing portable "prepared" command lines
$process = new Process('/usr/bin/php {{ phpFile }}');
$process->run(null, array('phpFile' => 'worker.php'));

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
Contributor

Choose a reason for hiding this comment

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

it should be noted whether the user of this api is still responsible to escape the passed in data or whether the console component will take care of escaping (e.g. > character or similar)

@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Mar 5, 2018
@Simperfit
Copy link
Contributor Author

We need to rework the feature, so this is not relevant anymore.

@Simperfit Simperfit closed this Mar 6, 2018
@Simperfit Simperfit deleted the patch-4 branch March 6, 2018 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Process Status: Needs Review Waiting Code Merge Docs for features pending to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants