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] Deprecate Process::setStdin in favor of Process::setInput#10932

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

Merged
fabpot merged 1 commit intosymfony:masterfromromainneutron:setstdin-setinput
May 22, 2014

Conversation

@romainneutron
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed ticketsn/a
LicenseMIT

From theProcess point of view, what we pass is aninput, as well as we retrieveoutput anderror output.
As we usegetOutput andgetErrorOutput we should usesetInput and let the underlyingProcessPipes deal with the actualSTDIN.

By the way,ProcessBuilder already hassetInput method and nosetStdin method

Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: getInput

@romainneutronromainneutron changed the title[Process] Deprecate Process::setStdin in favor if Process::setInput[Process] Deprecate Process::setStdin in favor of Process::setInputMay 18, 2014
@romainneutron
Copy link
ContributorAuthor

PR updated, typo fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

It does not always write to stdin anymore, does it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

If an input is passed, yes it's written to the underlying process's stdin.

@romainneutron
Copy link
ContributorAuthor

PR Updated, comments addressed

Copy link
Member

Choose a reason for hiding this comment

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

The method names should end with()

@romainneutron
Copy link
ContributorAuthor

@fabpot updated, changed target to 2.5 instead of 2.6

@fabpot
Copy link
Member

Thanks@romainneutron.

@fabpotfabpot merged commit53b9d73 intosymfony:masterMay 22, 2014
fabpot added a commit that referenced this pull requestMay 22, 2014
…ess::setInput (romainneutron)This PR was merged into the 2.3-dev branch.Discussion----------[Process] Deprecate Process::setStdin in favor of Process::setInput| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | n/a| License       | MITFrom the `Process` point of view, what we pass is an *input*, as well as we retrieve *output* and *error output*.As we use `getOutput` and `getErrorOutput` we should use `setInput` and let the underlying `ProcessPipes` deal with the actual `STDIN`.By the way, `ProcessBuilder` already has `setInput` method and no `setStdin` methodCommits-------53b9d73 [Process] Deprecate Process::setStdin in favor of Process::setInput
@darektw
Copy link

it does not pass tests...

Failed asserting that exception message 'Symfony\Component\Process\Process::setInput only accepts strings.' contains 'Symfony\Component\Process\Process::setStdin only accepts strings.'.

please change tested exception messages!

@romainneutron
Copy link
ContributorAuthor

Thanks for the report @MarcomTeam. The issue has been introduced while merging 2.3 in master. A PR has been submitted, it should be fixed soon.

fabpot added a commit that referenced this pull requestMay 22, 2014
…recation (romainneutron)This PR was merged into the 2.3-dev branch.Discussion----------[Process] Fix conflicts between latest 2.3 fix and 2.5 deprecation| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MITAs reported in#10932 (comment), it's been introduced when merging 2.3 in masterCommits-------3454d60 [Process] Fix conflicts between latest 2.3 fix and 2.5 deprecation
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@romainneutron@fabpot@darektw@staabm@lyrixx@stof

[8]ページ先頭

©2009-2025 Movatter.jp