11use Psr\Log\LoggerInterface;
29 private readonly LoggerInterface $logger,
30 private readonly
string $input,
32 private readonly
Title $title,
37 if ( $this->input !==
'' ) {
39 '{name} editing "{title}" submitted bogus field "{input}"',
41 'name' => $this->user->getName(),
42 'title' => $this->title->getPrefixedText(),
43 'input' => $this->input
46 return StatusValue::newGood( self::AS_SPAM_ERROR )
47 ->fatal(
'spamprotectionmatch',
'' );
49 return StatusValue::newGood();
if(!defined('MW_SETUP_CALLBACK'))
Verify simple anti spam measure of an extra hidden text field.
__construct(private readonly LoggerInterface $logger, private readonly string $input, private readonly UserIdentity $user, private readonly Title $title,)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for all constraints that can prevent edits.