소스 검색

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

Jordi Boggiano 9 년 전
부모
커밋
8ed894cf99
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/Composer/IO/ConsoleIO.php

+ 7 - 0
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;