소스 검색

fix issue #251 - Using $this not in object context

Brian Clozel 13 년 전
부모
커밋
33a0ba69de
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Composer/Repository/Vcs/HgDriver.php

+ 2 - 1
src/Composer/Repository/Vcs/HgDriver.php

@@ -185,7 +185,8 @@ class HgDriver extends VcsDriver implements VcsDriverInterface
             return false;
         }
 
-        $exit = $this->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored);
+        $processExecutor = new ProcessExecutor();
+        $exit = $processExecutor->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored);
         return $exit === 0;
     }
 }