Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitAPI_conduit_ping_Method.php
| <?php | <?php | ||||
| /** | |||||
| * @group conduit | |||||
| */ | |||||
| final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod { | final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod { | ||||
| public function shouldRequireAuthentication() { | public function shouldRequireAuthentication() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return 'Basic ping for monitoring or a health-check.'; | return 'Basic ping for monitoring or a health-check.'; | ||||
| Show All 9 Lines | final class ConduitAPI_conduit_ping_Method extends ConduitAPIMethod { | ||||
| public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
| return php_uname('n'); | return php_uname('n'); | ||||
| } | } | ||||
| } | } | ||||