1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 20:22:46 +01:00
phorge-phorge/src/applications/conduit/method/ConduitPingConduitAPIMethod.php

30 lines
554 B
PHP
Raw Normal View History

<?php
final class ConduitPingConduitAPIMethod extends ConduitAPIMethod {
public function getAPIMethodName() {
return 'conduit.ping';
}
public function shouldRequireAuthentication() {
return false;
}
public function getMethodDescription() {
return 'Basic ping for monitoring or a health-check.';
}
protected function defineParamTypes() {
return array();
}
protected function defineReturnType() {
return 'string';
}
protected function execute(ConduitAPIRequest $request) {
return php_uname('n');
}
}