From 8ed894cf999756089f9ffa969b3756f26bf4af1d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 13 Feb 2016 15:33:04 +0000 Subject: [PATCH] Fix usage of symfony console for sf<2.8, fixes #4913 --- src/Composer/IO/ConsoleIO.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Composer/IO/ConsoleIO.php b/src/Composer/IO/ConsoleIO.php index f97af2e8a..f23e75c84 100644 --- a/src/Composer/IO/ConsoleIO.php +++ b/src/Composer/IO/ConsoleIO.php @@ -130,6 +130,13 @@ class ConsoleIO extends BaseIO return; } + // hack to keep our usage BC with symfony<2.8 versions + // this removes the quiet output but there is no way around it + // see https://github.com/composer/composer/pull/4913 + if (OutputInterface::VERBOSITY_QUIET === 0) { + $sfVerbosity = OutputInterface::OUTPUT_NORMAL; + } + if (null !== $this->startTime) { $memoryUsage = memory_get_usage() / 1024 / 1024; $timeSpent = microtime(true) - $this->startTime;