for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bluz Framework Component
*
* @copyright Bluz PHP Team
* @link https://github.com/bluzphp/framework
*/
declare(strict_types=1);
namespace Bluz\Proxy;
use Bluz\Mailer\Mailer as Instance;
* Proxy to Mailer
* Example of usage
* <code>
* use Bluz\Proxy\Mailer;
* $mail = Mailer::create();
* $mail->From = '[email protected]';
* $mail->Subject = 'Here is the subject';
* // ...
* Mailer::send($mail);
* </code>
* @package Bluz\Proxy
* @author Anton Shevchuk
* @method static Instance getInstance()
* @method static \PHPMailer create()
* @see Instance::create()
* @method static bool send(\PHPMailer $mail)
* @see Instance::send()
class Mailer
{
use ProxyTrait;
* Init instance
* @return Instance
protected static function initInstance()
$instance = new Instance();
$instance->setOptions(Config::getData('mailer'));
return $instance;
}