CoreFiles by mySites.guru
MailerFactoryInterface.php36 lines, 870 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
7b3ef4ff066e296790070fa921de8df2
sha1
e9f0b0c278f7d0835358a2dc1829b3204f9fbae5
sha256
fb6e5838c920816e535d03c22d1295e52bde9e36912cb9fad23c2b1b5bdfd01f
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Mail;

use Joomla\Registry\Registry;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Interface defining a factory which can create mailer objects.
 *
 * @since  4.4.0
 */
interface MailerFactoryInterface
{
    /**
     * Method to get an instance of a mailer. If the passed settings are null,
     * then the mailer does use the internal configuration.
     *
     * @param   ?Registry  $settings  The configuration
     *
     * @return  MailerInterface
     *
     * @since   4.4.0
     */
    public function createMailer(?Registry $settings = null): MailerInterface;
}

The same content is in 190 releases, Joomla 4.4.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.