Skip to content
This repository
Browse code

MINOR Fixed SS_LogEmailWriter and SS_LogFileWriter to adhere to new Z…

…end interface
  • Loading branch information...
commit f11751c42dd0050ee5803265ade04b92c7c1815a 1 parent 9434f87
Ingo Schommer authored
4  dev/LogEmailWriter.php
@@ -24,6 +24,10 @@ public function __construct($emailAddress, $customSmtpServer = false) {
24 24
 		$this->emailAddress = $emailAddress;
25 25
 		$this->customSmtpServer = $customSmtpServer;
26 26
 	}
  27
+	
  28
+	static function factory($emailAddress, $customSmtpServer = false) {
  29
+		return new SS_LogEmailWriter($emailAddress, $customSmtpServer);
  30
+	}
27 31
 
28 32
 	public static function set_send_from($address) {
29 33
 		self::$send_from = $address;
4  dev/LogFileWriter.php
@@ -43,6 +43,10 @@ public function __construct($path, $messageType = 3, $extraHeaders = '') {
43 43
 		$this->messageType = $messageType;
44 44
 		$this->extraHeaders = $extraHeaders;
45 45
 	}
  46
+	
  47
+	static function factory($path, $messageType = 3, $extraHeaders = '') {
  48
+		return new SS_LogFileWriter($path, $messageType, $extraHeaders);
  49
+	}
46 50
 
47 51
 	/**
48 52
 	 * Write the log message to the file path set

0 notes on commit f11751c

Please sign in to comment.
Something went wrong with that request. Please try again.