Log::error(sprintf('Failure in the processor. Please verify if the command is recognized. Exit code text returned: "%s". Error output: %s', $process->getExitCodeText(), $process->getErrorOutput()));
22
23
return false;
24
}
25
26
return true;
27
}
28
29
/**
30
* @param array $command
31
*
32
* @return bool
33
*/
34
public static function runArray(array $command): bool
35
{
36
$process = new Process($command);
37
$process->run();
38
39
if ($process->getExitCode() !== 0) {
40
Log::error(sprintf('Failure in the processor. Please verify if the command is recognized. Exit code text returned: "%s". Error output: %s', $process->getExitCodeText(), $process->getErrorOutput()));