Differential D25031 Diff 83 src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
Context not available. | |||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$method = $args->getArg('method'); | $method = $args->getArg('method'); | ||||
if (!strlen($method)) { | if (!@strlen($method)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Specify a method to call with "--method".')); | pht('Specify a method to call with "--method".')); | ||||
} | } | ||||
$input = $args->getArg('input'); | $input = $args->getArg('input'); | ||||
if (!strlen($input)) { | if (!@strlen($input)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Specify a file to read parameters from with "--input".')); | pht('Specify a file to read parameters from with "--input".')); | ||||
} | } | ||||
$as = $args->getArg('as'); | $as = $args->getArg('as'); | ||||
if (strlen($as)) { | if (@strlen($as)) { | ||||
$actor = id(new PhabricatorPeopleQuery()) | $actor = id(new PhabricatorPeopleQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withUsernames(array($as)) | ->withUsernames(array($as)) | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0