Debian Codegraph @

tests/phpunit/unit/includes/Rest/Handler/HelloHandler.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Tests\Rest\Handler;
4
5 use MediaWiki\Rest\Handler;
6
7 /**
8 * Example handler
9 * @unstable
10 */
11 class HelloHandler extends Handler {
12 public function execute() {
13 $hello = $this->getConfig()['hello'] ?? 'Hello!';
14 return [ 'message' => $hello ];
15 }
16
17 public function needsWriteAccess() {
18 return false;
19 }
20 }