X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fmailer%2Fclass_BaseMailer.php;h=1d675b77ad093d42fdf854542067e9c310ad1611;hb=c1aadb61b45c15273c07c366887c8f58c53155e3;hp=b137e5ff628d4c66294bf4ffd1b9524964470b89;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/classes/mailer/class_BaseMailer.php b/framework/main/classes/mailer/class_BaseMailer.php index b137e5ff..1d675b77 100644 --- a/framework/main/classes/mailer/class_BaseMailer.php +++ b/framework/main/classes/mailer/class_BaseMailer.php @@ -1,17 +1,19 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -28,7 +30,7 @@ use CoreFramework\Generic\FrameworkInterface; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseMailer extends BaseFrameworkSystem { +abstract class BaseMailer extends BaseFrameworkSystem { /** * Template name */ @@ -40,7 +42,7 @@ class BaseMailer extends BaseFrameworkSystem { * @param $className Name of the class * @return void */ - protected function __construct ($className) { + protected function __construct (string $className) { // Call parent constructor parent::__construct($className); } @@ -56,7 +58,7 @@ class BaseMailer extends BaseFrameworkSystem { $this->setTemplateName($templateName); // Get configuration entry - $templatePrefix = $this->getConfigInstance()->getConfigEntry('email_tpl_' . $templateName); + $templatePrefix = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('email_tpl_' . $templateName); // Load this email template $this->getTemplateInstance()->loadEmailTemplate($templatePrefix . '_' . $templateName);