Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware Class Reference

This middleware errors for bot edit requests given the user doesn't have the 'bot' right. More...

+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware:

Public Member Functions

 __construct (PermissionManager $permissionManager, ResponseFactory $responseFactory)
 
 run (Handler $routeHandler, callable $runNext)
 

Private Attributes

PermissionManager $permissionManager
 
ResponseFactory $responseFactory
 

Detailed Description

This middleware errors for bot edit requests given the user doesn't have the 'bot' right.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware::__construct ( PermissionManager $permissionManager,
ResponseFactory $responseFactory )

Member Function Documentation

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware::run ( Handler $routeHandler,
callable $runNext )

Member Data Documentation

◆ $permissionManager

PermissionManager Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware::$permissionManager
private

◆ $responseFactory

ResponseFactory Wikibase\Repo\RestApi\RouteHandlers\Middleware\BotRightCheckMiddleware::$responseFactory
private

The documentation for this class was generated from the following file: