[Console] Handle new verbosity levels

This commit is contained in:
Jordi Boggiano 2013-04-25 12:13:01 +02:00
parent e639686ad5
commit 54c1377a33
3 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ EOF
$builder->setWorkingDirectory($input->getOption('docroot')); $builder->setWorkingDirectory($input->getOption('docroot'));
$builder->setTimeout(null); $builder->setTimeout(null);
$builder->getProcess()->run(function ($type, $buffer) use ($output) { $builder->getProcess()->run(function ($type, $buffer) use ($output) {
if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) { if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
$output->write($buffer); $output->write($buffer);
} }
}); });

View File

@ -770,7 +770,7 @@ class Application
$output->writeln(""); $output->writeln("");
$output->writeln(""); $output->writeln("");
if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) { if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
$output->writeln('<comment>Exception trace:</comment>'); $output->writeln('<comment>Exception trace:</comment>');
// exception related properties // exception related properties

View File

@ -196,6 +196,8 @@ class ProgressHelper extends Helper
} }
break; break;
case OutputInterface::VERBOSITY_VERBOSE: case OutputInterface::VERBOSITY_VERBOSE:
case OutputInterface::VERBOSITY_VERY_VERBOSE:
case OutputInterface::VERBOSITY_DEBUG:
$this->format = self::FORMAT_VERBOSE_NOMAX; $this->format = self::FORMAT_VERBOSE_NOMAX;
if ($this->max > 0) { if ($this->max > 0) {
$this->format = self::FORMAT_VERBOSE; $this->format = self::FORMAT_VERBOSE;