Differential D16694 Diff 40188 src/applications/conduit/parametertype/ConduitProjectListParameterType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/parametertype/ConduitProjectListParameterType.php
<?php | <?php | ||||
final class ConduitProjectListParameterType | final class ConduitProjectListParameterType | ||||
extends ConduitListParameterType { | extends ConduitListParameterType { | ||||
protected function getParameterValue(array $request, $key) { | protected function getParameterValue(array $request, $key) { | ||||
$list = parent::getParameterValue($request, $key); | $list = parent::getParameterValue($request, $key); | ||||
$list = $this->validateStringList($request, $key, $list); | $list = $this->parseStringList($request, $key, $list); | ||||
return id(new PhabricatorProjectPHIDResolver()) | return id(new PhabricatorProjectPHIDResolver()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->resolvePHIDs($list); | ->resolvePHIDs($list); | ||||
} | } | ||||
protected function getParameterTypeName() { | protected function getParameterTypeName() { | ||||
return 'list<project>'; | return 'list<project>'; | ||||
} | } | ||||
Show All 18 Lines |