for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
use Xoops\Core\PreloadItem;
use Xoops\Core\Service\Provider;
/**
* Gravatars preloads
*
* @category preloads
* @package GravatarsPreload
* @author Richard Griffith <[email protected]>
* @copyright 2014 XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @link http://xoops.org
* @since 2.6.0
class PhpmailerPreload extends PreloadItem
{
* listen for core.service.locate.email event
* @param Provider $provider - provider object for requested service
* @return void
public static function eventCoreServiceLocateEmail(Provider $provider)
$path = dirname(__DIR__) . '/class/PhpMailerEmailProvider.php';
require $path;
$object = new PhpMailerEmailProvider();
$provider->register($object);
}
* listen for core.service.locate.useremailmessage event
public static function eventCoreServiceLocateUserEmailMessage(Provider $provider)
$path = dirname(__DIR__) . '/class/PhpMailerMessageProvider.php';
$object = new PhpMailerMessageProvider();