Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitQueryConduitAPIMethod.php
Show All 12 Lines | final class ConduitQueryConduitAPIMethod extends ConduitAPIMethod { | ||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
protected function defineReturnType() { | protected function defineReturnType() { | ||||
return 'dict<dict>'; | return 'dict<dict>'; | ||||
} | } | ||||
public function getRequiredScope() { | |||||
return self::SCOPE_ALWAYS; | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$methods = id(new PhabricatorConduitMethodQuery()) | $methods = id(new PhabricatorConduitMethodQuery()) | ||||
->setViewer($request->getUser()) | ->setViewer($request->getUser()) | ||||
->execute(); | ->execute(); | ||||
$map = array(); | $map = array(); | ||||
foreach ($methods as $method) { | foreach ($methods as $method) { | ||||
$map[$method->getAPIMethodName()] = array( | $map[$method->getAPIMethodName()] = array( | ||||
Show All 10 Lines |