Differential D17158 Diff 41267 src/applications/conduit/controller/PhabricatorConduitConsoleController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/controller/PhabricatorConduitConsoleController.php
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | switch ($status) { | ||||
'This method is new and unstable. Its interface is subject '. | 'This method is new and unstable. Its interface is subject '. | ||||
'to change.')); | 'to change.')); | ||||
break; | break; | ||||
case ConduitAPIMethod::METHOD_STATUS_DEPRECATED: | case ConduitAPIMethod::METHOD_STATUS_DEPRECATED: | ||||
$stability_icon = 'fa-exclamation-triangle red'; | $stability_icon = 'fa-exclamation-triangle red'; | ||||
$stability_label = pht('Deprecated Method'); | $stability_label = pht('Deprecated Method'); | ||||
$stability_info = nonempty($reason, pht('This method is deprecated.')); | $stability_info = nonempty($reason, pht('This method is deprecated.')); | ||||
break; | break; | ||||
case ConduitAPIMethod::METHOD_STATUS_FROZEN: | |||||
$stability_icon = 'fa-archive grey'; | |||||
$stability_label = pht('Frozen Method'); | |||||
$stability_info = nonempty( | |||||
$reason, | |||||
pht('This method is frozen and will eventually be deprecated.')); | |||||
break; | |||||
default: | default: | ||||
$stability_label = null; | $stability_label = null; | ||||
break; | break; | ||||
} | } | ||||
if ($stability_label) { | if ($stability_label) { | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Stability'), | pht('Stability'), | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |