MailerFactory

Implements MailerFactoryInterface

Default factory for creating mailer objects.

since

4.4.0

package

Joomla CMS

Methods

__construct

The MailerFactory constructor.

__construct(\Joomla\Registry\Registry defaultConfiguration) : 

Arguments

defaultConfiguration

RegistryThe default configuration

Response

mixed

createMailer

Method to get an instance of a mailer. If the passed settings are null, then the mailer does use the internal configuration.

createMailer(\Joomla\Registry\Registry settings = null) : \Joomla\CMS\Mail\MailerInterface
since

4.4.0

Arguments

settings

Registry|nullThe configuration

Response

MailerInterface

Properties

defaultConfiguration

The default configuration.

since

4.4.0

Type(s)

Registry