Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistCallConduitWorkflow.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public function runWorkflow() { | ||||
| try { | try { | ||||
| $params = phutil_json_decode($params); | $params = phutil_json_decode($params); | ||||
| } catch (PhutilJSONParserException $ex) { | } catch (PhutilJSONParserException $ex) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| pht('Provide method parameters on stdin as a JSON blob.')); | pht('Provide method parameters on stdin as a JSON blob.')); | ||||
| } | } | ||||
| $engine = $this->getConduitEngine(); | $engine = $this->getConduitEngine(); | ||||
| $conduit_call = $engine->newCall($method, $params); | $conduit_future = $engine->newFuture($method, $params); | ||||
| $conduit_future = $engine->newFuture($conduit_call); | |||||
| $error = null; | $error = null; | ||||
| $error_message = null; | $error_message = null; | ||||
| try { | try { | ||||
| $result = $conduit_future->resolve(); | $result = $conduit_future->resolve(); | ||||
| } catch (ConduitClientException $ex) { | } catch (ConduitClientException $ex) { | ||||
| $error = $ex->getErrorCode(); | $error = $ex->getErrorCode(); | ||||
| $error_message = $ex->getMessage(); | $error_message = $ex->getMessage(); | ||||
| Show All 14 Lines | |||||