| 1 | <?php |
||
| 14 | class MailerFactory |
||
| 15 | { |
||
| 16 | private static $config = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $protocol |
||
| 20 | * @param string $class |
||
| 21 | * @throws \ByJG\Mail\Exception\InvalidMailHandlerException |
||
| 22 | */ |
||
| 23 | 4 | public static function registerMailer($protocol, $class) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param $connection |
||
| 33 | * @return mixed |
||
| 34 | * @throws \ByJG\Mail\Exception\ProtocolNotRegisteredException |
||
| 35 | */ |
||
| 36 | 2 | public static function create($connection) |
|
| 48 | } |
||
| 49 |