Source of file Mailer.php
Size: 1,022 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Proxy/Mailer.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | <?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 = 'from@example.com'; * $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() */ final class Mailer { use ProxyTrait; /** * Init instance * * @return Instance */ private static function initInstance() { $instance = new Instance(); $instance->setOptions(Config::getData('mailer')); return $instance; } } |