Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPasteWorkflow.php
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | public function runWorkflow() { | ||||
| $method = 'paste.edit'; | $method = 'paste.edit'; | ||||
| $parameters = array( | $parameters = array( | ||||
| 'transactions' => $xactions, | 'transactions' => $xactions, | ||||
| ); | ); | ||||
| $conduit_engine = $this->getConduitEngine(); | $conduit_engine = $this->getConduitEngine(); | ||||
| $conduit_call = $conduit_engine->newCall($method, $parameters); | $conduit_future = $conduit_engine->newFuture($method, $parameters); | ||||
| $conduit_future = $conduit_engine->newFuture($conduit_call); | |||||
| $result = $conduit_future->resolve(); | $result = $conduit_future->resolve(); | ||||
| $paste_phid = idxv($result, array('object', 'phid')); | $paste_phid = idxv($result, array('object', 'phid')); | ||||
| $paste_ref = $symbols->loadPasteForSymbol($paste_phid); | $paste_ref = $symbols->loadPasteForSymbol($paste_phid); | ||||
| $uri = $paste_ref->getURI(); | $uri = $paste_ref->getURI(); | ||||
| $uri = $this->getAbsoluteURI($uri); | $uri = $this->getAbsoluteURI($uri); | ||||
| Show All 19 Lines | |||||