parser = $parser; // Configuration $this->serviceOptions = $options; $this->serviceOptions->assertRequiredOptions( SignatureValidator::CONSTRUCTOR_OPTIONS ); $this->specialPageFactory = $specialPageFactory; $this->titleFactory = $titleFactory; } /** * @param UserIdentity $user * @param MessageLocalizer|null $localizer * @param ParserOptions $popts * @return SignatureValidator */ public function newSignatureValidator( UserIdentity $user, ?MessageLocalizer $localizer, ParserOptions $popts ): SignatureValidator { return new SignatureValidator( $this->serviceOptions, $user, $localizer, $popts, $this->parser, $this->specialPageFactory, $this->titleFactory ); } }