54 $this->output = array();
55 $this->errors = array();
57 $options =
' ' . trim($this->exeOptions) .
' ';
59 if (empty($this->exe)) {
60 $exeFinder =
new PhpExecutableFinder();
61 $foundExe = $exeFinder->find();
63 $this->exe = $foundExe .
' composer.phar';
65 $this->errors[] =
'Cannot find PHP executable';
71 $this->errors[] =
'Cannot change directory to XOOPS_PATH';
76 $command = $this->exe .
$options . $command_line;
84 if (
'err' ===
$type) {
87 $this->output[] = $buffer;
91 }
catch (\Exception $e) {
98 $this->errors[] =
'Failed: ' . $command;
99 $this->errors[] = sprintf(
100 "Process exit code: %s, '%s'",
141 $this->exe = $overrideExe;
setComposerExe($overrideExe)
composerExecute($command_line)