mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Reorganize mail driver class structure and add SES driver
This commit is contained in:
parent
a12722ad79
commit
0420361349
8 changed files with 189 additions and 90 deletions
|
|
@ -5,13 +5,8 @@ namespace Rhymix\Framework\Drivers\Mail;
|
|||
/**
|
||||
* The Woorimail mail driver.
|
||||
*/
|
||||
class Woorimail implements \Rhymix\Framework\Drivers\MailInterface
|
||||
class Woorimail extends Base implements \Rhymix\Framework\Drivers\MailInterface
|
||||
{
|
||||
/**
|
||||
* The configuration is stored here.
|
||||
*/
|
||||
protected $_config = null;
|
||||
|
||||
/**
|
||||
* The API URL.
|
||||
*/
|
||||
|
|
@ -36,25 +31,6 @@ class Woorimail implements \Rhymix\Framework\Drivers\MailInterface
|
|||
'me_013' => '전용채널에 도메인이 등록되어 있지 않습니다.',
|
||||
);
|
||||
|
||||
/**
|
||||
* Direct invocation of the constructor is not permitted.
|
||||
*/
|
||||
protected function __construct(array $config)
|
||||
{
|
||||
$this->_config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance of the current mail driver, using the given settings.
|
||||
*
|
||||
* @param array $config
|
||||
* @return void
|
||||
*/
|
||||
public static function getInstance(array $config)
|
||||
{
|
||||
return new self($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current mail driver is supported on this server.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue