Generator/Generator.php
protected function executeCommand($command)
    {

        $process = new Process($command);
        $process->run();

        return array(
            $process->getExitCode(),
            $process->getOutput(),
            $process->getErrorOutput(),
        );
    }
protected function executeCommand($command)
    {

        $process = new Process($command);
        $process->run();

        return array(
            $process->getExitCode(),
            $process->getOutput(),
            $process->getErrorOutput(),
        );
    }
protected function executeCommand ( $ command ) { $ process = new Process ( $ command ) ; $ process -> run ( ) ; return array ( $ process -> getExitCode ( ) , $ process -> getOutput ( ) , $ process -> getErrorOutput ( ) , ) ; }
Executes the given command via shell and returns the complete output as
a string

@param string $command

@return array(status, stdout, stderr)
Executes the given command via shell and returns the complete output as a string