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

[Console] Fix: Allow to inject QuestionHelper into SymfonyStyle#17468

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

Conversation

@localheinz
Copy link
Contributor

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

This PR

  • asserts that aHelper\QuestionHelper can be injected intoStyle\SymfonyStyle
  • provides a mutator for theHelper\QuestionHelper otherwise internally created byStyle\SymfonyStyle

💁 If usingStyle\SymfonyStyle and asking a question in a command, it's impossible to use the instructions laid outhere to provide an input stream. By allowing to inject an instance ofHelper\QuestionHelperintoStyle\SymfonyStyle, testing becomes possible again.

@localheinz
Copy link
ContributorAuthor

/cc@zcuric

@localheinzlocalheinzforce-pushed thefix/symfony-style-question branch fromec20df3 to3bd4b06CompareJanuary 21, 2016 08:03
@localheinz
Copy link
ContributorAuthor

Build failures seem unrelated to the changes in this PR.

@keradus
Copy link
Member

it looks to not break BC, could this go to 2.x line ?

@xabbuh
Copy link
Member

looks like a duplicate of#17136

@localheinz
Copy link
ContributorAuthor

@xabbuh

Ha, right - except:

  • tests
  • what does one need a getter for?

@xabbuh
Copy link
Member

@localheinz I don't care which one we finish. :)

@localheinz
Copy link
ContributorAuthor

Closing in favour of#17136.

@localheinzlocalheinz deleted the fix/symfony-style-question branchJanuary 22, 2016 16:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@localheinz@keradus@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp