function ProcessExecutor::execute
runs a process on the commandline
Parameters
string|non-empty-list<string> $command the command to execute:
mixed $output the output will be written into this var if passed by ref: if a callable is passed it will be used as output handler
null|string $cwd the working directory:
Return value
int statuscode
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ ProcessExecutor.php, line 92
Class
- ProcessExecutor
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\UtilCode
public function execute($command, &$output = null, ?string $cwd = null) : int {
if (func_num_args() > 1) {
return $this->doExecute($command, $cwd, false, $output);
}
return $this->doExecute($command, $cwd, false);
}