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\Common\Exception\ConfigurationException;
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\PHPMailer\PHPMailer create()
* @see Instance::create()
* @method static bool send(\PHPMailer\PHPMailer\PHPMailer $mail)
* @see Instance::send()
final class Mailer
{
use ProxyTrait;
* Init instance
* @return Instance
* @throws ConfigurationException
private static function initInstance(): Instance
initInstance()
This check looks for private methods that have been defined, but are not used inside the class.
$instance = new Instance();
$instance->setOptions(Config::get('mailer'));
$instance->init();
return $instance;
}
This check looks for private methods that have been defined, but are not used inside the class.