MediaWiki master
RestCheckCanExecuteHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Rest\Hook;
4
10
34 public function onRestCheckCanExecute(
35 Module $module,
36 Handler $handler,
37 string $path,
38 RequestInterface $request,
39 ?HttpException &$error
40 ): bool;
41}
Base class for REST route handlers.
Definition Handler.php:25
This is the base exception class for non-fatal exceptions thrown from REST handlers.
A REST module represents a collection of endpoints.
Definition Module.php:36
This is a hook handler interface, see docs/Hooks.md.
This is a hook handler interface, see docs/Hooks.md.
onRestCheckCanExecute(Module $module, Handler $handler, string $path, RequestInterface $request, ?HttpException &$error)
Called when initializing a REST API request.
A request interface similar to PSR-7's ServerRequestInterface.
Copyright (C) 2011-2020 Wikimedia Foundation and others.