From e81199f9af5335e88d6cdbdc02ab7f3ed1f4188f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 7 Aug 2018 17:55:42 +0200 Subject: [PATCH] Fix command --- lib/php/libsdk/SDK/Build/PGO/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/php/libsdk/SDK/Build/PGO/Controller.php b/lib/php/libsdk/SDK/Build/PGO/Controller.php index 4c138d6..2d48ad5 100644 --- a/lib/php/libsdk/SDK/Build/PGO/Controller.php +++ b/lib/php/libsdk/SDK/Build/PGO/Controller.php @@ -141,9 +141,9 @@ class Controller /* XXX this needs to go into the config, specifically for composer maybe even separate class. */ $url = "https://getcomposer.org/installer"; /* XXX remove the explicit version option when symfony demo is fixed. */ - $tool = $this->conf->getToolsDir() . DIRECTORY_SEPARATOR . "composer-setup.php --version=1.6.5"; + $tool = $this->conf->getToolsDir() . DIRECTORY_SEPARATOR . "composer-setup.php"; $pw->fetch($url, $tool, $force); - $php->exec("$tool --install-dir=" . $this->conf->getToolsDir()); + $php->exec("$tool --install-dir=" . $this->conf->getToolsDir() . " --version=1.6.5"); unlink($tool); } }