From e90a8dc4c9c8baa626dc78ebaceb1b1c96846f8c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 23 Jan 2012 10:28:15 +0100 Subject: [PATCH 1/2] Fix feedback from 7222c1 --- src/Composer/Autoload/AutoloadGenerator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 99263c0bf..47e75a944 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -31,7 +31,7 @@ class AutoloadGenerator Date: Mon, 23 Jan 2012 19:41:44 +0100 Subject: [PATCH 2/2] fix issue #251 - Using $this not in object context --- src/Composer/Repository/Vcs/HgDriver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/HgDriver.php b/src/Composer/Repository/Vcs/HgDriver.php index 2b8c4351c..61a80c1c4 100644 --- a/src/Composer/Repository/Vcs/HgDriver.php +++ b/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; } }