MediaWiki master
MediaWiki\Block\BlockPermissionCheckerFactory Class Reference

Factory class for BlockPermissionChecker. More...

Public Member Functions

 __construct (ServiceOptions $options, BlockUtils $blockUtils)
 
 newBlockPermissionChecker ( $target, Authority $performer)
 

Public Attributes

const CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS
 

Detailed Description

Factory class for BlockPermissionChecker.

Since
1.35

Definition at line 33 of file BlockPermissionCheckerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\BlockPermissionCheckerFactory::__construct ( ServiceOptions $options,
BlockUtils $blockUtils )
Parameters
ServiceOptions$options
BlockUtils$blockUtils

Definition at line 50 of file BlockPermissionCheckerFactory.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ newBlockPermissionChecker()

MediaWiki\Block\BlockPermissionCheckerFactory::newBlockPermissionChecker ( $target,
Authority $performer )
Parameters
UserIdentity | string | null$targetTarget of the validated block; may be null if unknown
Authority$performerPerformer of the validated block
Returns
BlockPermissionChecker

Definition at line 65 of file BlockPermissionCheckerFactory.php.

Referenced by MediaWiki\Block\UnblockUser\__construct(), and MediaWiki\Block\BlockUser\__construct().

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Block\BlockPermissionCheckerFactory::CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS
Access: internal
only to be used by ServiceWiring

Definition at line 41 of file BlockPermissionCheckerFactory.php.


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