MediaWiki  master
BlockPermissionCheckerFactory.php
Go to the documentation of this file.
1 <?php
2 
22 namespace MediaWiki\Block;
23 
25 use User;
26 
33 
38 
43  $this->permissionManager = $permissionManager;
44  }
45 
52  public function newBlockPermissionChecker(
53  $target,
54  User $performer
55  ) {
56  return new BlockPermissionChecker(
57  $this->permissionManager,
58  $target,
59  $performer
60  );
61  }
62 }
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:32
MediaWiki\Block
Definition: AbstractBlock.php:21
MediaWiki\Block\BlockPermissionChecker
Block permissions.
Definition: BlockPermissionChecker.php:38
MediaWiki\Permissions\PermissionManager
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()-...
Definition: PermissionManager.php:49
MediaWiki\Block\BlockPermissionCheckerFactory\__construct
__construct(PermissionManager $permissionManager)
Definition: BlockPermissionCheckerFactory.php:42
MediaWiki\Block\BlockPermissionCheckerFactory\newBlockPermissionChecker
newBlockPermissionChecker( $target, User $performer)
Definition: BlockPermissionCheckerFactory.php:52
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:55
MediaWiki\Block\BlockPermissionCheckerFactory\$permissionManager
PermissionManager $permissionManager
Definition: BlockPermissionCheckerFactory.php:37