Fix usage of symfony console for sf<2.8, fixes #4913

main
Jordi Boggiano 9 years ago
parent 25e089eee9
commit 8ed894cf99

@ -130,6 +130,13 @@ class ConsoleIO extends BaseIO
return; 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) { if (null !== $this->startTime) {
$memoryUsage = memory_get_usage() / 1024 / 1024; $memoryUsage = memory_get_usage() / 1024 / 1024;
$timeSpent = microtime(true) - $this->startTime; $timeSpent = microtime(true) - $this->startTime;

Loading…
Cancel
Save