<?php
/**
- *
+ * A mailer class for debugging purposes only. This class will print the
+ * prepared mail out and will not send it to the recipient.
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
/**
* Creates an instance of this mailer class
*
+ * @param $templateInstance A template instance
* @return $mailerInstance An instance of this mailer class
*/
- public final static function createDebugMailer () {
+ public final static function createDebugMailer (CompileableTemplate $templateInstance) {
// Get a new instance
$mailerInstance = new DebugMailer();
+ // Set template instance
+ $mailerInstance->setTemplateInstance($templateInstance);
+
// Return the instance
return $mailerInstance;
}