Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | try { | ||||
'user.whoami', | 'user.whoami', | ||||
array()); | array()); | ||||
$this->userName = $result['userName']; | $this->userName = $result['userName']; | ||||
$this->userPHID = $result['phid']; | $this->userPHID = $result['phid']; | ||||
$this->conduitAuthenticated = true; | $this->conduitAuthenticated = true; | ||||
return; | return $this; | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$conduit->setConduitToken(null); | $conduit->setConduitToken(null); | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
if (empty($credentials['user'])) { | if (empty($credentials['user'])) { | ||||
throw new ConduitClientException( | throw new ConduitClientException( | ||||
▲ Show 20 Lines • Show All 1,725 Lines • Show Last 20 Lines |