MediaWiki master
MediaWiki\Mail\EmailUserFactory Class Reference

Factory for EmailUser objects. More...

Public Member Functions

 __construct (ServiceOptions $options, HookContainer $hookContainer, UserOptionsLookup $userOptionsLookup, CentralIdLookup $centralIdLookup, UserFactory $userFactory, IEmailer $emailer, IMessageFormatterFactory $messageFormatterFactory, ITextFormatter $contLangMsgFormatter)
 
 newEmailUser (Authority $sender)
 
 newEmailUserBC (Authority $sender, ?Config $config=null)
 

Detailed Description

Factory for EmailUser objects.

Obtain via ServiceWiring.

Since
1.41

Definition at line 41 of file EmailUserFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Mail\EmailUserFactory::__construct ( ServiceOptions $options,
HookContainer $hookContainer,
UserOptionsLookup $userOptionsLookup,
CentralIdLookup $centralIdLookup,
UserFactory $userFactory,
IEmailer $emailer,
IMessageFormatterFactory $messageFormatterFactory,
ITextFormatter $contLangMsgFormatter )
Access: internal
For use by ServiceWiring only.
Parameters
ServiceOptions$options
HookContainer$hookContainer
UserOptionsLookup$userOptionsLookup
CentralIdLookup$centralIdLookup
UserFactory$userFactory
IEmailer$emailer
IMessageFormatterFactory$messageFormatterFactory
ITextFormatter$contLangMsgFormatter

Definition at line 63 of file EmailUserFactory.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), and MediaWiki\Mail\EmailUser\CONSTRUCTOR_OPTIONS.

Member Function Documentation

◆ newEmailUser()

MediaWiki\Mail\EmailUserFactory::newEmailUser ( Authority $sender)
Parameters
Authority$sender
Returns
EmailUser

Definition at line 88 of file EmailUserFactory.php.

◆ newEmailUserBC()

MediaWiki\Mail\EmailUserFactory::newEmailUserBC ( Authority $sender,
?Config $config = null )
Access: internal
Temporary BC method for SpecialEmailUser
Parameters
Authority$sender
Config | null$config
Returns
EmailUser

Definition at line 108 of file EmailUserFactory.php.


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