Standardize config field names, and make drivers declare which fields they require

This commit is contained in:
Kijin Sung 2016-05-10 15:58:26 +09:00
parent 4d1ada5f28
commit 10309e5811
6 changed files with 99 additions and 5 deletions

View file

@ -12,6 +12,16 @@ class SparkPost extends Base implements \Rhymix\Framework\Drivers\MailInterface
*/
protected static $_url = 'https://api.sparkpost.com/api/v1/transmissions';
/**
* Get the list of configuration fields required by this mail driver.
*
* @return array
*/
public static function getRequiredConfig()
{
return array('api_token');
}
/**
* Check if the current mail driver is supported on this server.
*