wiki.techinc.nl/tests/phpunit/unit/includes/Rest/Handler/HelloHandler.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
332 B
PHP
Raw Normal View History

<?php
namespace MediaWiki\Tests\Rest\Handler;
use MediaWiki\Rest\Handler;
/**
* Example handler
* @unstable
*/
class HelloHandler extends Handler {
public function execute() {
$hello = $this->getConfig()['hello'] ?? 'Hello!';
return [ 'message' => $hello ];
}
public function needsWriteAccess() {
return false;
}
}