Skip to content

[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

localheinz
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets n/a
License MIT
Doc PR n/a

This PR

  • asserts that a Helper\QuestionHelper can be injected into Style\SymfonyStyle
  • provides a mutator for the Helper\QuestionHelper otherwise internally created by Style\SymfonyStyle

💁 If using Style\SymfonyStyle and asking a question in a command, it's impossible to use the instructions laid out here to provide an input stream. By allowing to inject an instance of Helper\QuestionHelperinto Style\SymfonyStyle, testing becomes possible again.

@localheinz
Copy link
Contributor Author

/cc @zcuric

@localheinz localheinz force-pushed the fix/symfony-style-question branch from ec20df3 to 3bd4b06 Compare January 21, 2016 08:03
@localheinz
Copy link
Contributor Author

Build failures seem unrelated to the changes in this PR.

@keradus
Copy link
Member

keradus commented Jan 21, 2016

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

@xabbuh
Copy link
Member

xabbuh commented Jan 21, 2016

looks like a duplicate of #17136

@xabbuh xabbuh added the Console label Jan 21, 2016
@localheinz
Copy link
Contributor Author

@xabbuh

Ha, right - except:

  • tests
  • what does one need a getter for?

@xabbuh
Copy link
Member

xabbuh commented Jan 22, 2016

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

@localheinz
Copy link
Contributor Author

Closing in favour of #17136.

@localheinz localheinz closed this Jan 22, 2016
@localheinz localheinz deleted the fix/symfony-style-question branch January 22, 2016 16:50
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.

4 participants