You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a command where I'm using the console this way:
if ($input->isInteractive() && !$this->io->confirm('Provide confirmation', false)) {
// some stuff...
}
But when I execute the command with --quiet, the output is obviously not displayed but the process still waits for the user's response.
For this reason, I think the --quiet option (OutputInterface::VERBOSITY_QUIET) should set Input::$interactive as false.
OutputInterface::VERBOSITY_QUIET Do not output any messages -q or --quiet
…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
I have a command where I'm using the console this way:
But when I execute the command with
--quiet
, the output is obviously not displayed but the process still waits for the user's response.For this reason, I think the
--quiet
option (OutputInterface::VERBOSITY_QUIET
) should setInput::$interactive
asfalse
.Ref: http://symfony.com/doc/current/console/verbosity.html
If I don't misunderstood the intended behavior, I think it could be labeled as a bug.
The text was updated successfully, but these errors were encountered: