Skip to content
Snippets Groups Projects

Issue #3239466: Refactor build tests to use core-supported project templates

1 file
+ 1
7
Compare changes
  • Side-by-side
  • Inline
@@ -47,16 +47,10 @@ final class ProcessFactory implements ProcessFactoryInterface {
* {@inheritdoc}
*/
public function create(array $command): Process {
if ($this->isComposerCommand($command)) {
array_unshift($command, '-dpcre.jit=0');
array_unshift($command, PHP_BINARY);
$composer_command = TRUE;
}
$process = $this->decorated->create($command);
$env = $process->getEnv();
if ($this->isComposerCommand($command) || isset($composer_command)) {
if ($this->isComposerCommand($command)) {
$env['COMPOSER_HOME'] = $this->getComposerHomePath();
}
// Ensure that the running PHP binary is in the PATH.
Loading