-
Notifications
You must be signed in to change notification settings - Fork 14
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 #30 from jaapio/feature/header-objects
Allow header object injection.
- Loading branch information
Showing
5 changed files
with
121 additions
and
5 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
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
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,36 @@ | ||
<?php | ||
/** | ||
* MtMail - e-mail module for Zend Framework 2 | ||
* | ||
* @link http://github.com/mtymek/MtMail | ||
* @copyright Copyright (c) 2013-2014 Mateusz Tymek | ||
* @license BSD 2-Clause | ||
*/ | ||
|
||
namespace MtMailTest\Test; | ||
|
||
use MtMail\Template\HeadersProviderInterface; | ||
use MtMail\Template\HtmlTemplateInterface; | ||
use Zend\Mail\Header\Subject; | ||
|
||
class HeaderObjectProviderTemplate implements HtmlTemplateInterface, HeadersProviderInterface | ||
{ | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getHtmlTemplateName() | ||
{ | ||
return 'template'; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getHeaders() | ||
{ | ||
return [ | ||
'subject' => (new Subject())->setSubject('Default subject'), | ||
]; | ||
} | ||
} |