Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/ssh/ConduitSSHWorkflow.php
| Show All 25 Lines | public function execute(PhutilArgumentParser $args) { | ||||
| $method = head($methodv); | $method = head($methodv); | ||||
| $json = $this->readAllInput(); | $json = $this->readAllInput(); | ||||
| $raw_params = json_decode($json, true); | $raw_params = json_decode($json, true); | ||||
| if (!is_array($raw_params)) { | if (!is_array($raw_params)) { | ||||
| throw new Exception("Invalid JSON input."); | throw new Exception("Invalid JSON input."); | ||||
| } | } | ||||
| $params = idx($raw_params, 'params', array()); | $params = idx($raw_params, 'params', '[]'); | ||||
| $params = json_decode($params, true); | $params = json_decode($params, true); | ||||
| $metadata = idx($params, '__conduit__', array()); | $metadata = idx($params, '__conduit__', array()); | ||||
| unset($params['__conduit__']); | unset($params['__conduit__']); | ||||
| $call = null; | $call = null; | ||||
| $error_code = null; | $error_code = null; | ||||
| $error_info = null; | $error_info = null; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||