Browse Source

Output CWD change, refs #3332

Jordi Boggiano 10 năm trước cách đây
mục cha
commit
382b6c64d5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/Composer/Console/Application.php

+ 3 - 0
src/Composer/Console/Application.php

@@ -109,6 +109,9 @@ class Application extends BaseApplication
         if ($newWorkDir = $this->getNewWorkingDir($input)) {
             $oldWorkingDir = getcwd();
             chdir($newWorkDir);
+            if ($output->getVerbosity() >= 4) {
+                $output->writeln('Changed CWD to ' . getcwd());
+            }
         }
 
         // add non-standard scripts as own commands