Skip to content

[bugfix] [Console] Set Input::$interactive to false when command is executed with --quiet as verbosity level #19923

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
Sep 14, 2016

Conversation

phansys
Copy link
Contributor

@phansys phansys commented Sep 13, 2016

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

Closes #19899.

…is executed with `--quiet` as verbosity level
@fabpot
Copy link
Member

fabpot commented Sep 14, 2016

I don't understand why quiet and interactive would be tied. I made this decoupling consciously back then. It looks more flexible. So, I'm 👎 for this change.

@phansys
Copy link
Contributor Author

phansys commented Sep 14, 2016

I understand your concern about the responsibilities, but the fact I'm exposing here is that isn't possible to interact with a command when it is executed in quiet mode, given the command isn't able to prompt for any input or provide any kind of response to the user. For this reason, I think a method called isInteractive() must return false when the command isn't allowed to interact with the user at all.

@fabpot
Copy link
Member

fabpot commented Sep 14, 2016

Ah, understood now. Indeed, if even the questions are not displayed, that does not really make sense to have an interactive quiet command :)

@fabpot
Copy link
Member

fabpot commented Sep 14, 2016

Thank you @phansys.

@fabpot fabpot merged commit 4214311 into symfony:2.7 Sep 14, 2016
fabpot added a commit that referenced this pull request Sep 14, 2016
…en command is executed with `--quiet` as verbosity level (phansys)

This PR was merged into the 2.7 branch.

Discussion
----------

[bugfix] [Console] Set `Input::$interactive` to `false` when command is executed with `--quiet` as verbosity level

|Q            |A     |
|---          |---   |
|Branch       |2.7   |
|Bug fix?     |yes   |
|New feature? |no    |
|BC breaks?   |yes    |
|Deprecations?|no    |
|Tests pass?  |yes   |
|Fixed tickets|#19899|
|License      |MIT   |
|Doc PR       |n/a   |

Closes #19899.

Commits
-------

4214311 [bugfix] [Console] Set `Input::$interactive` to `false` when command is executed with `--quiet` as verbosity level
@phansys phansys deleted the ticket_19899 branch September 14, 2016 20:29
This was referenced Oct 3, 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.

3 participants