Banago\PHPloy\Git::exec PHP Метод

exec() публичный Метод

Executes a console command and returns the output (as an array).
public exec ( string $command ) : array
$command string Command to execute
Результат array of all lines that were output to the console during the command (STDOUT)
    public function exec($command)
    {
        $output = null;
        exec('(' . escapeshellcmd($command) . ') 2>&1', $output);
        return $output;
    }