Skip to content

[Process] Allow inheriting env vars instead of replacing them #19053

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

Merged
merged 1 commit into from
Jun 15, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18796
License MIT
Doc PR -


if (!is_resource($this->process)) {
echo $commandline;
Copy link
Member

Choose a reason for hiding this comment

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

should be removed

@nicolas-grekas nicolas-grekas force-pushed the all-env branch 5 times, most recently from 79963fe to 5c6248b Compare June 14, 2016 15:55
@nicolas-grekas
Copy link
Member Author

Comments addressed, all green :)

}
$env = '\\' === DIRECTORY_SEPARATOR ? '(SET %s)&&' : 'export %s;';
foreach ($this->env as $k => $v) {
$envline .= sprintf($env, ProcessUtils::escapeArgument("$k=$v"));
Copy link
Member

@xabbuh xabbuh Jun 14, 2016

Choose a reason for hiding this comment

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

Don't we need one space after a value if it is followed by another key?

Never mind, you use one export per environment variable.

*
* @param bool $inheritEnv
*
* @return ProcessBuilder
Copy link
Member

Choose a reason for hiding this comment

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

@return is wrong

@fabpot
Copy link
Member

fabpot commented Jun 15, 2016

👍

1 similar comment
@stof
Copy link
Member

stof commented Jun 15, 2016

👍

@nicolas-grekas nicolas-grekas changed the title [Process] Allow merging env vars instead of replacing them [Process] Allow inheriting env vars instead of replacing them Jun 15, 2016
@fabpot
Copy link
Member

fabpot commented Jun 15, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 524508c into symfony:master Jun 15, 2016
fabpot added a commit that referenced this pull request Jun 15, 2016
…ng them (nicolas-grekas)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[Process] Allow inheriting env vars instead of replacing them

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18796
| License       | MIT
| Doc PR        | -

Commits
-------

524508c [Process] Allow merging env vars instead of replacing them
@nicolas-grekas nicolas-grekas deleted the all-env branch June 15, 2016 16:42
@fabpot fabpot mentioned this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants