-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from iwasherefirst2/extract-config
Extract config
- Loading branch information
Showing
8 changed files
with
196 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ composer.lock | |
.phpunit.result.cache | ||
tests/_report | ||
.env | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace IWasHereFirst2\LaravelMultiMail\Exceptions; | ||
|
||
class NotInitializedException extends \Exception | ||
{ | ||
public function __construct() | ||
{ | ||
$this->message = 'Please call loadConfiguration($key) before anything else.'; | ||
parent::__construct(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
|
||
namespace IWasHereFirst2\LaravelMultiMail; | ||
|
||
interface MailSettings | ||
{ | ||
public function initialize($key); | ||
|
||
/** | ||
* Check if log driver is currently used. | ||
* | ||
* @return boolean | ||
*/ | ||
public function isLogDriver(); | ||
|
||
/** | ||
* Get provider. | ||
* | ||
* @return array | ||
*/ | ||
public function getProvider(); | ||
|
||
/** | ||
* Get setting. | ||
* | ||
* @return array | ||
*/ | ||
public function getSetting(); | ||
|
||
/** | ||
* Return email of sender. | ||
* | ||
* @return string | ||
*/ | ||
public function getFromEmail(); | ||
|
||
/** | ||
* Return name of sender. | ||
* | ||
* @return string | ||
*/ | ||
public function getFromName(); | ||
|
||
/** | ||
* Return email of sender. | ||
* | ||
* @return string | ||
*/ | ||
public function getReplyEmail(); | ||
|
||
/** | ||
* Return name of sender. | ||
* | ||
* @return string | ||
*/ | ||
public function getReplyName(); | ||
|
||
/** | ||
* Return email | ||
* @return string | ||
*/ | ||
public function getEmail(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.