@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 29 lines 559 B view raw
1<?php 2 3final class ConduitPingConduitAPIMethod extends ConduitAPIMethod { 4 5 public function getAPIMethodName() { 6 return 'conduit.ping'; 7 } 8 9 public function shouldRequireAuthentication() { 10 return false; 11 } 12 13 public function getMethodDescription() { 14 return pht('Basic ping for monitoring or a health-check.'); 15 } 16 17 protected function defineParamTypes() { 18 return array(); 19 } 20 21 protected function defineReturnType() { 22 return 'string'; 23 } 24 25 protected function execute(ConduitAPIRequest $request) { 26 return php_uname('n'); 27 } 28 29}