MediaWiki master
BlockPermissionCheckerFactory.php
Go to the documentation of this file.
1<?php
2
22namespace MediaWiki\Block;
23
27
38
39 private ServiceOptions $options;
40 private BlockUtils $blockUtils;
41
42 public function __construct(
43 ServiceOptions $options,
44 BlockUtils $blockUtils
45 ) {
46 $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS );
47 $this->options = $options;
48 $this->blockUtils = $blockUtils;
49 }
50
58 $target,
59 Authority $performer
60 ) {
61 return new BlockPermissionChecker(
62 $this->options,
63 $this->blockUtils,
64 $target,
65 $performer
66 );
67 }
68}
__construct(ServiceOptions $options, BlockUtils $blockUtils)
Backend class for blocking utils.
A class for passing options to services.
assertRequiredOptions(array $expectedKeys)
Assert that the list of options provided in this instance exactly match $expectedKeys,...
This interface represents the authority associated with the current execution context,...
Definition Authority.php:37
Interface for objects representing user identity.