|
|
@ -35,7 +35,10 @@ class EmailTemplateParser {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private $emailTemplateRetriever;
|
|
|
|
private $emailTemplateRetriever;
|
|
|
|
|
|
|
|
|
|
|
|
function __construct($statusGateway, $categoryGateway, $userGateway, $emailTemplateRetriever) {
|
|
|
|
function __construct(StatusGateway $statusGateway,
|
|
|
|
|
|
|
|
CategoryGateway $categoryGateway,
|
|
|
|
|
|
|
|
UserGateway $userGateway,
|
|
|
|
|
|
|
|
EmailTemplateRetriever $emailTemplateRetriever) {
|
|
|
|
$this->statusGateway = $statusGateway;
|
|
|
|
$this->statusGateway = $statusGateway;
|
|
|
|
$this->categoryGateway = $categoryGateway;
|
|
|
|
$this->categoryGateway = $categoryGateway;
|
|
|
|
$this->userGateway = $userGateway;
|
|
|
|
$this->userGateway = $userGateway;
|
|
|
@ -50,6 +53,7 @@ class EmailTemplateParser {
|
|
|
|
* @param $modsForHeskSettings array
|
|
|
|
* @param $modsForHeskSettings array
|
|
|
|
* @return ParsedEmailProperties
|
|
|
|
* @return ParsedEmailProperties
|
|
|
|
* @throws InvalidEmailTemplateException
|
|
|
|
* @throws InvalidEmailTemplateException
|
|
|
|
|
|
|
|
* @throws \Exception
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function getFormattedEmailForLanguage($templateId, $languageCode, $ticket, $heskSettings, $modsForHeskSettings) {
|
|
|
|
function getFormattedEmailForLanguage($templateId, $languageCode, $ticket, $heskSettings, $modsForHeskSettings) {
|
|
|
|
global $hesklang;
|
|
|
|
global $hesklang;
|
|
|
|