pass translator to notification service

This commit is contained in:
Uwe Steinmann 2025-10-29 15:39:48 +01:00
parent caa0e3f139
commit 8a6db445c5

View File

@ -41,6 +41,11 @@ class SeedDMS_NotificationService {
*/
protected $settings;
/*
* Translator
*/
protected $translator;
/*
* Possible types of receivers
*/
@ -52,11 +57,12 @@ class SeedDMS_NotificationService {
const RECV_WORKFLOW = 5;
const RECV_UPLOADER = 6;
public function __construct($logger = null, $settings = null) { /* {{{ */
public function __construct($logger = null, $settings = null, $translator=null) { /* {{{ */
$this->services = array();
$this->errors = array();
$this->logger = $logger;
$this->settings = $settings;
$this->translator = $translator;
} /* }}} */
public function addService($service, $name='') { /* {{{ */
@ -66,6 +72,10 @@ class SeedDMS_NotificationService {
$this->errors[$name] = true;
} /* }}} */
public function getTranslator() { /* {{{ */
return $this->translator;
} /* }}} */
public function getServices() { /* {{{ */
return $this->services;
} /* }}} */