Skip to content
Snippets Groups Projects

Issue #3227588: Remove duplicate calls to validation in updater now that caller should validate

Merged Issue #3227588: Remove duplicate calls to validation in updater now that caller should validate
4 files
+ 27
14
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -20,7 +20,13 @@ final class ProcessFactory implements ProcessFactoryInterface {
@@ -20,7 +20,13 @@ final class ProcessFactory implements ProcessFactoryInterface {
public function create(array $command): Process {
public function create(array $command): Process {
try {
try {
if ($this->isComposerCommand($command)) {
if ($this->isComposerCommand($command)) {
return new Process($command, NULL, ['COMPOSER_HOME' => $this->getComposerHomePath()]);
$process = new Process($command, NULL, ['COMPOSER_HOME' => $this->getComposerHomePath()]);
 
$path = function_exists('apache_getenv') ? apache_getenv('PATH') : getenv('PATH');
 
$path .= ':' . dirname(PHP_BINARY);
 
$env = $process->getEnv();
 
$env['PATH'] = $path;
 
$process->setEnv($env);
 
return $process;
}
}
return new Process($command);
return new Process($command);
// @codeCoverageIgnore
// @codeCoverageIgnore
Loading