Example #1
0
 public function call($cmd, array $options)
 {
     if (!in_array($cmd, $this->allowedCommands)) {
         // log error
         return null;
     }
     $cmd = join(' ', array($this->options[static::OPTIONS_SVN_COMMAND], $cmd, join(' ', $options), $this->getDefaultArgs()));
     Hoborg_Log::debug($cmd);
     $out = '';
     exec($cmd, $out);
     $xml = join('', $out);
     $doc = new DOMDocument();
     $doc->loadXML($xml);
     return $doc;
 }