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