>>'; } protected function defineCustomParamTypes() { return array( 'refs' => 'required list', 'types' => 'optional list', ); } protected function getResult(ConduitAPIRequest $request) { $refs = $request->getValue('refs'); $types = $request->getValue('types'); $query = id(new DiffusionLowLevelResolveRefsQuery()) ->setRepository($this->getDiffusionRequest()->getRepository()) ->withRefs($refs); if ($types) { $query->withTypes($types); } return $query->execute(); } }