Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / maniphest / conduit / ManiphestPrioritySearchConduitAPIMethod.php
blobeab06fb7803fb6b150a20400c5f82d230b1699e3
1 <?php
3 final class ManiphestPrioritySearchConduitAPIMethod
4 extends ManiphestConduitAPIMethod {
6 public function getAPIMethodName() {
7 return 'maniphest.priority.search';
10 public function getMethodSummary() {
11 return pht('Read information about task priorities.');
14 public function getMethodDescription() {
15 return pht(
16 'Returns information about the possible priorities for Maniphest '.
17 'tasks.');
20 protected function defineParamTypes() {
21 return array();
24 protected function defineReturnType() {
25 return 'map<string, wild>';
28 public function getRequiredScope() {
29 return self::SCOPE_ALWAYS;
32 protected function execute(ConduitAPIRequest $request) {
33 $config = ManiphestTaskPriority::getConfig();
35 $results = array();
36 foreach ($config as $code => $priority) {
37 $priority['value'] = $code;
38 $results[] = $priority;
41 return array('data' => $results);