MediaWiki
REL1_39
BasicAuthorizerInterface.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest\BasicAccess
;
4
5
use
MediaWiki\Rest\Handler
;
6
use
MediaWiki\Rest\RequestInterface
;
7
14
interface
BasicAuthorizerInterface
{
27
public
function
authorize
(
RequestInterface
$request,
Handler
$handler );
28
}
MediaWiki\Rest\Handler
Base class for REST route handlers.
Definition
Handler.php:20
MediaWiki\Rest\BasicAccess\BasicAuthorizerInterface
An interface used by Router to ensure that the client has "basic" access, i.e.
Definition
BasicAuthorizerInterface.php:14
MediaWiki\Rest\BasicAccess\BasicAuthorizerInterface\authorize
authorize(RequestInterface $request, Handler $handler)
Determine whether a request should be permitted, given the handler's needsReadAccess() and needsWrite...
MediaWiki\Rest\RequestInterface
A request interface similar to PSR-7's ServerRequestInterface.
Definition
RequestInterface.php:39
MediaWiki\Rest\BasicAccess
Definition
BasicAuthorizerBase.php:3
MediaWiki\Rest\Handler
Copyright (C) 2011-2020 Wikimedia Foundation and others.
Definition
AbstractContributionHandler.php:3
includes
Rest
BasicAccess
BasicAuthorizerInterface.php
Generated on Thu Nov 21 2024 05:23:52 for MediaWiki by
1.10.0