MediaWiki  master
MWBasicAuthorizer.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
17  private $user;
18 
21 
23  $this->user = $user;
24  $this->permissionManager = $permissionManager;
25  }
26 
27  protected function createRequestAuthorizer( RequestInterface $request,
28  Handler $handler
30  return new MWBasicRequestAuthorizer( $request, $handler, $this->user,
31  $this->permissionManager );
32  }
33 }
An implementation of BasicAuthorizerInterface which creates a request-local object (a request authori...
__construct(UserIdentity $user, PermissionManager $permissionManager)
A factory for MWBasicRequestAuthorizer which passes through a UserIdentity.
Interface for objects representing user identity.
createRequestAuthorizer(RequestInterface $request, Handler $handler)
A request interface similar to PSR-7&#39;s ServerRequestInterface.
The concrete implementation of basic read/write restrictions in MediaWiki.
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls i...
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()-...