示例#1
0
 function watchmanCommand()
 {
     $args = func_get_args();
     if ($this->use_cli) {
         $future = new WatchmanQueryFuture($this->watchman_instance->getFullSockName(), $this->root, $this->cli_args, $args);
         return $future->resolve();
     }
     $console = PhutilConsole::getConsole();
     $console->writeLog("sock query: %s\n", json_encode($args));
     return call_user_func_array(array($this->watchman_instance, 'request'), $args);
 }
示例#2
0
 function watchmanCommand()
 {
     $args = func_get_args();
     if ($this->use_cli) {
         $future = new WatchmanQueryFuture($this->watchman_instance->getFullSockName(), $this->root, $this->cli_args, $args);
         return $future->resolve();
     }
     return call_user_func_array(array($this->watchman_instance, 'request'), $args);
 }