Преглед изворни кода

Merge pull request #252 from bclozel/issue_251

fix issue #251 - Using $this not in object context
Jordi Boggiano пре 13 година
родитељ
комит
d27060a1d6
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;
     }
 }